[gtk+/wip/matthiasc/monitor] settings: Stop comparing screen numbers



commit b10ac55551537d64c375fbc19e10c9496e941141
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Apr 10 23:44:05 2016 -0400

    settings: Stop comparing screen numbers
    
    There is only one screen.

 gtk/gtksettings.c |   22 +++++++++-------------
 1 files changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index e91a734..503e8a6 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -2919,21 +2919,17 @@ static void
 settings_update_double_click (GtkSettings *settings)
 {
   GtkSettingsPrivate *priv = settings->priv;
+  GdkDisplay *display = gdk_screen_get_display (priv->screen);
+  gint double_click_time;
+  gint double_click_distance;
 
-  if (gdk_screen_get_number (priv->screen) == 0)
-    {
-      GdkDisplay *display = gdk_screen_get_display (priv->screen);
-      gint double_click_time;
-      gint double_click_distance;
-
-      g_object_get (settings,
-                    "gtk-double-click-time", &double_click_time,
-                    "gtk-double-click-distance", &double_click_distance,
-                    NULL);
+  g_object_get (settings,
+                "gtk-double-click-time", &double_click_time,
+                "gtk-double-click-distance", &double_click_distance,
+                NULL);
 
-      gdk_display_set_double_click_time (display, double_click_time);
-      gdk_display_set_double_click_distance (display, double_click_distance);
-    }
+  gdk_display_set_double_click_time (display, double_click_time);
+  gdk_display_set_double_click_distance (display, double_click_distance);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]