[Xfce4-commits] [apps/xfce4-screensaver] 185/425: Remove gtk version check around gdk_x11_screen_lookup_visual

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:50:32 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit c1d1e089a69c5e90e8b0cf4b96335899f209e7f0
Author: infirit <infirit at gmail.com>
Date:   Thu Jul 9 10:24:33 2015 +0200

    Remove gtk version check around gdk_x11_screen_lookup_visual
    
    The function has been in Gtk 2 since 2.2.
---
 src/gs-visual-gl.c                 | 4 ----
 src/gs-window-x11.c                | 4 ----
 src/mate-screensaver-preferences.c | 8 --------
 3 files changed, 16 deletions(-)

diff --git a/src/gs-visual-gl.c b/src/gs-visual-gl.c
index e1f2cc1..670859a 100644
--- a/src/gs-visual-gl.c
+++ b/src/gs-visual-gl.c
@@ -93,11 +93,7 @@ gs_visual_gl_get_best_for_screen (GdkScreen *screen)
 
 			vid = XVisualIDFromVisual (vi->visual);
 
-#if GTK_CHECK_VERSION (3, 0, 0)
 			visual = gdk_x11_screen_lookup_visual (screen, vid);
-#else
-			visual = gdkx_visual_get (vid);
-#endif
 
 			XFree (vi);
 
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index 479c826..3ed8b8e 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -793,11 +793,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),
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),

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list