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/xfns.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/xfns.c')
| -rw-r--r-- | src/xfns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xfns.c b/src/xfns.c index 6d1d68dcada..46cd10e5f2f 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3804,7 +3804,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3804 | Return false if and only if the workarea information cannot be | 3804 | Return false if and only if the workarea information cannot be |
| 3805 | obtained via the _NET_WORKAREA root window property. */ | 3805 | obtained via the _NET_WORKAREA root window property. */ |
| 3806 | 3806 | ||
| 3807 | #if ! (defined USE_GTK && GTK_PREREQ (3, 4)) | 3807 | #if ! GTK_CHECK_VERSION (3, 4, 0) |
| 3808 | static bool | 3808 | static bool |
| 3809 | x_get_net_workarea (struct x_display_info *dpyinfo, XRectangle *rect) | 3809 | x_get_net_workarea (struct x_display_info *dpyinfo, XRectangle *rect) |
| 3810 | { | 3810 | { |
| @@ -4265,7 +4265,7 @@ Internal use only, use `display-monitor-attributes-list' instead. */) | |||
| 4265 | / x_display_pixel_height (dpyinfo)); | 4265 | / x_display_pixel_height (dpyinfo)); |
| 4266 | gdpy = gdk_x11_lookup_xdisplay (dpyinfo->display); | 4266 | gdpy = gdk_x11_lookup_xdisplay (dpyinfo->display); |
| 4267 | gscreen = gdk_display_get_default_screen (gdpy); | 4267 | gscreen = gdk_display_get_default_screen (gdpy); |
| 4268 | #if GTK_PREREQ (2, 20) | 4268 | #if GTK_CHECK_VERSION (2, 20, 0) |
| 4269 | primary_monitor = gdk_screen_get_primary_monitor (gscreen); | 4269 | primary_monitor = gdk_screen_get_primary_monitor (gscreen); |
| 4270 | #endif | 4270 | #endif |
| 4271 | n_monitors = gdk_screen_get_n_monitors (gscreen); | 4271 | n_monitors = gdk_screen_get_n_monitors (gscreen); |
| @@ -4300,7 +4300,7 @@ Internal use only, use `display-monitor-attributes-list' instead. */) | |||
| 4300 | gdk_screen_get_monitor_geometry (gscreen, i, &rec); | 4300 | gdk_screen_get_monitor_geometry (gscreen, i, &rec); |
| 4301 | geometry = list4i (rec.x, rec.y, rec.width, rec.height); | 4301 | geometry = list4i (rec.x, rec.y, rec.width, rec.height); |
| 4302 | 4302 | ||
| 4303 | #if GTK_PREREQ (2, 14) | 4303 | #if GTK_CHECK_VERSION (2, 14, 0) |
| 4304 | width_mm = gdk_screen_get_monitor_width_mm (gscreen, i); | 4304 | width_mm = gdk_screen_get_monitor_width_mm (gscreen, i); |
| 4305 | height_mm = gdk_screen_get_monitor_height_mm (gscreen, i); | 4305 | height_mm = gdk_screen_get_monitor_height_mm (gscreen, i); |
| 4306 | #endif | 4306 | #endif |
| @@ -4312,7 +4312,7 @@ Internal use only, use `display-monitor-attributes-list' instead. */) | |||
| 4312 | list2i (width_mm, height_mm)), | 4312 | list2i (width_mm, height_mm)), |
| 4313 | attributes); | 4313 | attributes); |
| 4314 | 4314 | ||
| 4315 | #if GTK_PREREQ (3, 4) | 4315 | #if GTK_CHECK_VERSION (3, 4, 0) |
| 4316 | gdk_screen_get_monitor_workarea (gscreen, i, &rec); | 4316 | gdk_screen_get_monitor_workarea (gscreen, i, &rec); |
| 4317 | workarea = list4i (rec.x, rec.y, rec.width, rec.height); | 4317 | workarea = list4i (rec.x, rec.y, rec.width, rec.height); |
| 4318 | #else | 4318 | #else |
| @@ -4339,7 +4339,7 @@ Internal use only, use `display-monitor-attributes-list' instead. */) | |||
| 4339 | attributes = Fcons (Fcons (Qworkarea, workarea), attributes); | 4339 | attributes = Fcons (Fcons (Qworkarea, workarea), attributes); |
| 4340 | 4340 | ||
| 4341 | attributes = Fcons (Fcons (Qgeometry, geometry), attributes); | 4341 | attributes = Fcons (Fcons (Qgeometry, geometry), attributes); |
| 4342 | #if GTK_PREREQ (2, 14) | 4342 | #if GTK_CHECK_VERSION (2, 14, 0) |
| 4343 | { | 4343 | { |
| 4344 | char *name = gdk_screen_get_monitor_plug_name (gscreen, i); | 4344 | char *name = gdk_screen_get_monitor_plug_name (gscreen, i); |
| 4345 | if (name) | 4345 | if (name) |