forked from AuroraMiddleware/gtk
inspector: Stop using gdk_display_get_default_cursor_size
If the cursor theme size setting has no value, just hardcode 32. Also, allow ridiculously large cursors, just for fun.
This commit is contained in:
parent
35c78a995e
commit
ab1f17cb9a
@ -547,7 +547,7 @@ init_cursor_size (GtkInspectorVisual *vis)
|
||||
|
||||
g_object_get (gtk_settings_get_default (), "gtk-cursor-theme-size", &size, NULL);
|
||||
if (size == 0)
|
||||
size = gdk_display_get_default_cursor_size (gdk_display_get_default ());
|
||||
size = 32;
|
||||
|
||||
gtk_adjustment_set_value (vis->priv->scale_adjustment, (gdouble)size);
|
||||
g_signal_connect (vis->priv->cursor_size_adjustment, "value-changed",
|
||||
|
@ -19,8 +19,8 @@
|
||||
<property name="page-increment">1</property>
|
||||
</object>
|
||||
<object class="GtkAdjustment" id="cursor_size_adjustment">
|
||||
<property name="lower">24</property>
|
||||
<property name="upper">64</property>
|
||||
<property name="lower">16</property>
|
||||
<property name="upper">128</property>
|
||||
<property name="step-increment">8</property>
|
||||
<property name="page-increment">8</property>
|
||||
<property name="page-size">0</property>
|
||||
|
Loading…
Reference in New Issue
Block a user