From ab1f17cb9a18301a5688cdecc35fa147ef2140f5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 16 Jan 2018 23:21:32 -0500 Subject: [PATCH] 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 9e2ccbf7b7..663702234e 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 a40c7ef394..246ae56a9a 100644 --- a/gtk/inspector/visual.ui +++ b/gtk/inspector/visual.ui @@ -19,8 +19,8 @@ 1 - 24 - 64 + 16 + 128 8 8 0