[gtk+/wip/drop-useless-api: 3/7] inspector: Stop using gdk_display_get_default_cursor_size
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/drop-useless-api: 3/7] inspector: Stop using gdk_display_get_default_cursor_size
- Date: Wed, 17 Jan 2018 04:27:07 +0000 (UTC)
commit ab1f17cb9a18301a5688cdecc35fa147ef2140f5
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 16 23:21:32 2018 -0500
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.
gtk/inspector/visual.c | 2 +-
gtk/inspector/visual.ui | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/inspector/visual.c b/gtk/inspector/visual.c
index 9e2ccbf..6637022 100644
--- a/gtk/inspector/visual.c
+++ b/gtk/inspector/visual.c
@@ -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",
diff --git a/gtk/inspector/visual.ui b/gtk/inspector/visual.ui
index a40c7ef..246ae56 100644
--- a/gtk/inspector/visual.ui
+++ b/gtk/inspector/visual.ui
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]