diff options
| author | Jan Djärv | 2011-11-27 19:33:17 +0100 |
|---|---|---|
| committer | Jan Djärv | 2011-11-27 19:33:17 +0100 |
| commit | 54e9e3bf847d39b8c0daa46a999efeb6f84c9d76 (patch) | |
| tree | 4cb768242a57e75c056a6172baf7455e2c47180a /src | |
| parent | e9a452d9cd08b5e09fa7ee51d1f57bbc4a9509c0 (diff) | |
| download | emacs-54e9e3bf847d39b8c0daa46a999efeb6f84c9d76.tar.gz emacs-54e9e3bf847d39b8c0daa46a999efeb6f84c9d76.zip | |
Work around an Ubuntu 11.10 bug where Emacs loops forever when started.
* configure.in: Check for gtk_window_set_has_resize_grip.
* src/gtkutil.c (xg_create_frame_widgets): Call
gtk_window_set_has_resize_grip (FALSE) if that function is
present with Gtk+ 2.0.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/gtkutil.c | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index dd7b715e443..5b1d5aa2f24 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-11-27 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * gtkutil.c (xg_create_frame_widgets): Call | ||
| 4 | gtk_window_set_has_resize_grip (FALSE) if that function is | ||
| 5 | present with Gtk+ 2.0. | ||
| 6 | |||
| 1 | 2011-11-26 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2011-11-26 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | * fileio.c (Finsert_file_contents): Undo previous change; see | 9 | * fileio.c (Finsert_file_contents): Undo previous change; see |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 7e6f5c3164d..bc71685819e 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -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); |