diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-01-16 23:20:12 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-01-16 23:25:50 -0500 |
commit | 35c78a995e3c56e74b81235c2af0d58313345ee0 (patch) | |
tree | 1af3325a3af4a550d11796d69ed382110b93c4a7 /gtk/gtktooltip.c | |
parent | 3fa0d4dad7899897aa021fc64a6d783c19883bf5 (diff) | |
download | gtk+-35c78a995e3c56e74b81235c2af0d58313345ee0.tar.gz |
tooltip: Stop using gdk_display_get_default_cursor_size
It makes more sense to use the actual cursor theme size here.
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r-- | gtk/gtktooltip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 91f1d54b75..eed1a56380 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -708,7 +708,9 @@ gtk_tooltip_position (GtkTooltip *tooltip, /* Position the tooltip */ - cursor_size = gdk_display_get_default_cursor_size (display); + g_object_get (gtk_widget_get_settings (GTK_WIDGET (tooltip->current_window)), + "gtk-cursor-theme-size", &cursor_size, + NULL); /* Try below */ x = bounds.x + bounds.width / 2 - width / 2; |