diff options
| author | Alexander Gramiak | 2019-04-07 19:02:03 -0600 |
|---|---|---|
| committer | Alexander Gramiak | 2019-04-14 19:15:45 -0600 |
| commit | fc0f469fb5b5eb28ca4d9948190be6cb1bd8156e (patch) | |
| tree | a872db9e55d150d03c7378b599d860214cab28b5 /src/xterm.h | |
| parent | 5c2f94a182a1154766154040eb5b4b39275fd3b6 (diff) | |
| download | emacs-fc0f469fb5b5eb28ca4d9948190be6cb1bd8156e.tar.gz emacs-fc0f469fb5b5eb28ca4d9948190be6cb1bd8156e.zip | |
Bump minimum GTK versions to 2.24 and 3.10
* configure.ac: Bump required GTK 2 and GTK 3 versions and the
associated GLib versions. Remove obsolete AC_CHECK_FUNCS calls. These
check for functions available in later GTK 2 versions. These checks
and can safely be removed with the exception of
gtk_window_set_has_resize_grip, which according to a comment in
gtkutil.c causes an issue in Ubuntu's GTK 2.
* src/gtkutil.c:
* src/xfns.c:
* src/xterm.c:
* src/xterm.h: Remove now unused conditional blocks. Use HAVE_GTK3
instead of GTK_CHECK_VERSION where now applicable. Remove checks of
now always true USE_GTK_TOOLTIP.
Diffstat (limited to 'src/xterm.h')
| -rw-r--r-- | src/xterm.h | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/src/xterm.h b/src/xterm.h index c5ad38650c2..bb7631a3f44 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -50,17 +50,8 @@ typedef Widget xt_or_gtk_widget; | |||
| 50 | #include <gdk/gdkx.h> | 50 | #include <gdk/gdkx.h> |
| 51 | #endif /* USE_GTK */ | 51 | #endif /* USE_GTK */ |
| 52 | 52 | ||
| 53 | /* True iff GTK's version is at least I.J.K. */ | 53 | #ifndef USE_GTK |
| 54 | #ifndef GTK_CHECK_VERSION | 54 | #define GTK_CHECK_VERSION(i, j, k) false |
| 55 | # ifdef USE_GTK | ||
| 56 | # define GTK_CHECK_VERSION(i, j, k) \ | ||
| 57 | ((i) \ | ||
| 58 | < GTK_MAJOR_VERSION + ((j) \ | ||
| 59 | < GTK_MINOR_VERSION + ((k) \ | ||
| 60 | <= GTK_MICRO_VERSION))) | ||
| 61 | # else | ||
| 62 | # define GTK_CHECK_VERSION(i, j, k) false | ||
| 63 | # endif | ||
| 64 | #endif | 55 | #endif |
| 65 | 56 | ||
| 66 | #ifdef USE_GTK | 57 | #ifdef USE_GTK |
| @@ -76,11 +67,6 @@ typedef GtkWidget *xt_or_gtk_widget; | |||
| 76 | #endif | 67 | #endif |
| 77 | #endif /* USE_GTK */ | 68 | #endif /* USE_GTK */ |
| 78 | 69 | ||
| 79 | /* The GtkTooltip API came in 2.12, but gtk-enable-tooltips in 2.14. */ | ||
| 80 | #if GTK_CHECK_VERSION (2, 14, 0) | ||
| 81 | #define USE_GTK_TOOLTIP | ||
| 82 | #endif | ||
| 83 | |||
| 84 | #ifdef USE_CAIRO | 70 | #ifdef USE_CAIRO |
| 85 | #include <cairo-xlib.h> | 71 | #include <cairo-xlib.h> |
| 86 | #ifdef CAIRO_HAS_PDF_SURFACE | 72 | #ifdef CAIRO_HAS_PDF_SURFACE |
| @@ -594,12 +580,9 @@ struct x_output | |||
| 594 | GdkGeometry size_hints; | 580 | GdkGeometry size_hints; |
| 595 | long hint_flags; | 581 | long hint_flags; |
| 596 | 582 | ||
| 597 | #ifdef USE_GTK_TOOLTIP | ||
| 598 | GtkTooltip *ttip_widget; | 583 | GtkTooltip *ttip_widget; |
| 599 | GtkWidget *ttip_lbl; | 584 | GtkWidget *ttip_lbl; |
| 600 | GtkWindow *ttip_window; | 585 | GtkWindow *ttip_window; |
| 601 | #endif /* USE_GTK_TOOLTIP */ | ||
| 602 | |||
| 603 | #endif /* USE_GTK */ | 586 | #endif /* USE_GTK */ |
| 604 | 587 | ||
| 605 | /* If >=0, a bitmap index. The indicated bitmap is used for the | 588 | /* If >=0, a bitmap index. The indicated bitmap is used for the |
| @@ -793,18 +776,6 @@ extern void x_mark_frame_dirty (struct frame *f); | |||
| 793 | FRAME_X_WINDOW (f)) | 776 | FRAME_X_WINDOW (f)) |
| 794 | #else | 777 | #else |
| 795 | #ifdef USE_GTK | 778 | #ifdef USE_GTK |
| 796 | /* Functions not present in older Gtk+ */ | ||
| 797 | |||
| 798 | #ifndef HAVE_GTK_WIDGET_GET_WINDOW | ||
| 799 | #define gtk_widget_get_window(w) ((w)->window) | ||
| 800 | #endif | ||
| 801 | #ifndef HAVE_GTK_WIDGET_GET_MAPPED | ||
| 802 | #define gtk_widget_get_mapped(w) (GTK_WIDGET_MAPPED (w)) | ||
| 803 | #endif | ||
| 804 | #ifndef HAVE_GTK_ADJUSTMENT_GET_PAGE_SIZE | ||
| 805 | #define gtk_adjustment_get_page_size(w) ((w)->page_size) | ||
| 806 | #define gtk_adjustment_get_upper(w) ((w)->upper) | ||
| 807 | #endif | ||
| 808 | 779 | ||
| 809 | #ifdef HAVE_GTK3 | 780 | #ifdef HAVE_GTK3 |
| 810 | #define DEFAULT_GDK_DISPLAY() \ | 781 | #define DEFAULT_GDK_DISPLAY() \ |