GdkScreen: Set reasonable limis for ::resolution

Otherwise, the spinbutton in the inspectors property editor
explodes in order to make room for MAXDOUBLE.
This commit is contained in:
Matthias Clasen
2014-07-04 02:01:53 -04:00
parent d9e475ed6a
commit a159635020

View File

@ -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));