summaryrefslogtreecommitdiff
path: root/src/mate-screensaver-preferences.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-09 10:24:33 +0200
committerinfirit <[email protected]>2015-07-09 11:28:41 +0200
commitc1d1e089a69c5e90e8b0cf4b96335899f209e7f0 (patch)
tree571eb3ab0d26bc2a49105e4fb773180fe71b0cee /src/mate-screensaver-preferences.c
parentff534bee884ac262696786038099ef17c5d447f0 (diff)
downloadmate-screensaver-c1d1e089a69c5e90e8b0cf4b96335899f209e7f0.tar.bz2
mate-screensaver-c1d1e089a69c5e90e8b0cf4b96335899f209e7f0.tar.xz
Remove gtk version check around gdk_x11_screen_lookup_visual
The function has been in Gtk 2 since 2.2.
Diffstat (limited to 'src/mate-screensaver-preferences.c')
-rw-r--r--src/mate-screensaver-preferences.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index 02ae11d..08ea293 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -1308,11 +1308,7 @@ get_best_visual (void)
VisualID visual_id;
visual_id = (VisualID) v;
-#if GTK_CHECK_VERSION (3, 0, 0)
visual = gdk_x11_screen_lookup_visual (gdk_screen_get_default (), visual_id);
-#else
- visual = gdkx_visual_get (visual_id);
-#endif
g_debug ("Found best visual for GL: 0x%x",
(unsigned int) visual_id);
@@ -1443,11 +1439,7 @@ get_best_visual_for_screen (GdkScreen *screen)
VisualID visual_id;
visual_id = (VisualID) v;
-#if GTK_CHECK_VERSION (3, 0, 0)
visual = gdk_x11_screen_lookup_visual (screen, visual_id);
-#else
- visual = gdkx_visual_get (visual_id);
-#endif
gs_debug ("Found best GL visual for screen %d: 0x%x",
gdk_screen_get_number (screen),