diff options
Diffstat (limited to 'src/gtkutil.c')
| -rw-r--r-- | src/gtkutil.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index 31cbd32f441..43cdb38c640 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -127,7 +127,7 @@ xg_set_screen (GtkWidget *w, FRAME_PTR f) | |||
| 127 | 127 | ||
| 128 | Returns non-zero if display could be opened, zero if display could not | 128 | Returns non-zero if display could be opened, zero if display could not |
| 129 | be opened, and less than zero if the GTK version doesn't support | 129 | be opened, and less than zero if the GTK version doesn't support |
| 130 | multipe displays. */ | 130 | multiple displays. */ |
| 131 | 131 | ||
| 132 | void | 132 | void |
| 133 | xg_display_open (char *display_name, Display **dpy) | 133 | xg_display_open (char *display_name, Display **dpy) |
| @@ -1100,6 +1100,14 @@ xg_create_frame_widgets (FRAME_PTR f) | |||
| 1100 | else | 1100 | else |
| 1101 | wtop = gtk_window_new (GTK_WINDOW_TOPLEVEL); | 1101 | wtop = gtk_window_new (GTK_WINDOW_TOPLEVEL); |
| 1102 | 1102 | ||
| 1103 | /* gtk_window_set_has_resize_grip is a Gtk+ 3.0 function but Ubuntu | ||
| 1104 | has backported it to Gtk+ 2.0 and they add the resize grip for | ||
| 1105 | Gtk+ 2.0 applications also. But it has a bug that makes Emacs loop | ||
| 1106 | forever, so disable the grip. */ | ||
| 1107 | #if GTK_MAJOR_VERSION < 3 && defined (HAVE_GTK_WINDOW_SET_HAS_RESIZE_GRIP) | ||
| 1108 | gtk_window_set_has_resize_grip (GTK_WINDOW (wtop), FALSE); | ||
| 1109 | #endif | ||
| 1110 | |||
| 1103 | xg_set_screen (wtop, f); | 1111 | xg_set_screen (wtop, f); |
| 1104 | 1112 | ||
| 1105 | wvbox = gtk_vbox_new (FALSE, 0); | 1113 | wvbox = gtk_vbox_new (FALSE, 0); |
| @@ -2363,7 +2371,7 @@ xg_create_one_menuitem (widget_value *item, | |||
| 2363 | HIGHLIGHT_CB is the callback to call when entering/leaving menu items. | 2371 | HIGHLIGHT_CB is the callback to call when entering/leaving menu items. |
| 2364 | POP_UP_P is non-zero if we shall create a popup menu. | 2372 | POP_UP_P is non-zero if we shall create a popup menu. |
| 2365 | MENU_BAR_P is non-zero if we shall create a menu bar. | 2373 | MENU_BAR_P is non-zero if we shall create a menu bar. |
| 2366 | ADD_TEAROFF_P is non-zero if we shall add a teroff menu item. Ignored | 2374 | ADD_TEAROFF_P is non-zero if we shall add a tearoff menu item. Ignored |
| 2367 | if MENU_BAR_P is non-zero. | 2375 | if MENU_BAR_P is non-zero. |
| 2368 | TOPMENU is the topmost GtkWidget that others shall be placed under. | 2376 | TOPMENU is the topmost GtkWidget that others shall be placed under. |
| 2369 | It may be NULL, in that case we create the appropriate widget | 2377 | It may be NULL, in that case we create the appropriate widget |
| @@ -4262,7 +4270,7 @@ xg_make_tool_item (FRAME_PTR f, | |||
| 4262 | #endif | 4270 | #endif |
| 4263 | gtk_tool_item_set_homogeneous (ti, FALSE); | 4271 | gtk_tool_item_set_homogeneous (ti, FALSE); |
| 4264 | 4272 | ||
| 4265 | /* Callback to save modifyer mask (Shift/Control, etc). GTK makes | 4273 | /* Callback to save modifier mask (Shift/Control, etc). GTK makes |
| 4266 | no distinction based on modifiers in the activate callback, | 4274 | no distinction based on modifiers in the activate callback, |
| 4267 | so we have to do it ourselves. */ | 4275 | so we have to do it ourselves. */ |
| 4268 | g_signal_connect (wb, "button-release-event", | 4276 | g_signal_connect (wb, "button-release-event", |