[gtk+] GdkScreen: Set reasonable limis for ::resolution



commit a1596350209cc0b89bbc6c7f92dc5be604ac4e8f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 4 02:01:53 2014 -0400

    GdkScreen: Set reasonable limis for ::resolution
    
    Otherwise, the spinbutton in the inspectors property editor
    explodes in order to make room for MAXDOUBLE.

 gdk/gdkscreen.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkscreen.c b/gdk/gdkscreen.c
index a1ae7e7..e2cbfb7 100644
--- a/gdk/gdkscreen.c
+++ b/gdk/gdkscreen.c
@@ -98,8 +98,8 @@ gdk_screen_class_init (GdkScreenClass *klass)
                                   g_param_spec_double ("resolution",
                                                        P_("Font resolution"),
                                                        P_("The resolution for fonts on the screen"),
-                                                       -G_MAXDOUBLE,
-                                                       G_MAXDOUBLE,
+                                                       -1.0,
+                                                       10000.0,
                                                        -1.0,
                                                        G_PARAM_READWRITE|G_PARAM_STATIC_NAME|
                                                        G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));


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