mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
tooltip: Stop using gdk_display_get_default_cursor_size
It makes more sense to use the actual cursor theme size here.
This commit is contained in:
parent
3fa0d4dad7
commit
35c78a995e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user