diff options
| author | Paul Eggert | 2013-05-09 07:49:56 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-05-09 07:49:56 -0700 |
| commit | 7583e2a0e23b20ecd29fa0e308e710bde4873ea4 (patch) | |
| tree | 9081dd49133c3f6f0a7f2e56f66f5c2876442fb4 /src/gtkutil.c | |
| parent | 59c886717271b57d661027685d203a3dd5cfafa7 (diff) | |
| download | emacs-7583e2a0e23b20ecd29fa0e308e710bde4873ea4.tar.gz emacs-7583e2a0e23b20ecd29fa0e308e710bde4873ea4.zip | |
* xterm.h (GTK_PREREQ): Remove, replacing with GTK_CHECK_VERSION.
(GTK_CHECK_VERSION): New macro, if not already defined.
All uses of GTK_PREREQ, GTK_MAJOR_VERSION, etc.
replaced by GTK_CHECK_VERSION.
Diffstat (limited to 'src/gtkutil.c')
| -rw-r--r-- | src/gtkutil.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index d4f72fd6b7f..8ac58f18158 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -70,13 +70,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 70 | #define gtk_adjustment_get_step_increment(w) ((w)->step_increment) | 70 | #define gtk_adjustment_get_step_increment(w) ((w)->step_increment) |
| 71 | #define gtk_adjustment_set_step_increment(w, s) ((w)->step_increment = (s)) | 71 | #define gtk_adjustment_set_step_increment(w, s) ((w)->step_increment = (s)) |
| 72 | #endif | 72 | #endif |
| 73 | #if GTK_PREREQ (2, 12) | 73 | #if GTK_CHECK_VERSION (2, 12, 0) |
| 74 | #define remove_submenu(w) gtk_menu_item_set_submenu ((w), NULL) | 74 | #define remove_submenu(w) gtk_menu_item_set_submenu ((w), NULL) |
| 75 | #else | 75 | #else |
| 76 | #define remove_submenu(w) gtk_menu_item_remove_submenu ((w)) | 76 | #define remove_submenu(w) gtk_menu_item_remove_submenu ((w)) |
| 77 | #endif | 77 | #endif |
| 78 | 78 | ||
| 79 | #if GTK_PREREQ (3, 2) | 79 | #if GTK_CHECK_VERSION (3, 2, 0) |
| 80 | #define USE_NEW_GTK_FONT_CHOOSER 1 | 80 | #define USE_NEW_GTK_FONT_CHOOSER 1 |
| 81 | #else | 81 | #else |
| 82 | #define USE_NEW_GTK_FONT_CHOOSER 0 | 82 | #define USE_NEW_GTK_FONT_CHOOSER 0 |
| @@ -202,7 +202,7 @@ xg_display_close (Display *dpy) | |||
| 202 | gdpy_def = gdpy_new; | 202 | gdpy_def = gdpy_new; |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | #if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 10 | 205 | #if GTK_CHECK_VERSION (2, 0, 0) && ! GTK_CHECK_VERSION (2, 10, 0) |
| 206 | /* GTK 2.2-2.8 has a bug that makes gdk_display_close crash (bug | 206 | /* GTK 2.2-2.8 has a bug that makes gdk_display_close crash (bug |
| 207 | http://bugzilla.gnome.org/show_bug.cgi?id=85715). This way we | 207 | http://bugzilla.gnome.org/show_bug.cgi?id=85715). This way we |
| 208 | can continue running, but there will be memory leaks. */ | 208 | can continue running, but there will be memory leaks. */ |
| @@ -1155,7 +1155,8 @@ xg_create_frame_widgets (FRAME_PTR f) | |||
| 1155 | has backported it to Gtk+ 2.0 and they add the resize grip for | 1155 | has backported it to Gtk+ 2.0 and they add the resize grip for |
| 1156 | Gtk+ 2.0 applications also. But it has a bug that makes Emacs loop | 1156 | Gtk+ 2.0 applications also. But it has a bug that makes Emacs loop |
| 1157 | forever, so disable the grip. */ | 1157 | forever, so disable the grip. */ |
| 1158 | #if GTK_MAJOR_VERSION < 3 && defined (HAVE_GTK_WINDOW_SET_HAS_RESIZE_GRIP) | 1158 | #if (! GTK_CHECK_VERSION (3, 0, 0) \ |
| 1159 | && defined HAVE_GTK_WINDOW_SET_HAS_RESIZE_GRIP) | ||
| 1159 | gtk_window_set_has_resize_grip (GTK_WINDOW (wtop), FALSE); | 1160 | gtk_window_set_has_resize_grip (GTK_WINDOW (wtop), FALSE); |
| 1160 | #endif | 1161 | #endif |
| 1161 | 1162 | ||