mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
tests: Stop using gdk_cursor_new_for_display
The name-based api is the one we prefer.
This commit is contained in:
parent
fa5e3ee54e
commit
47fb329279
@ -3857,7 +3857,7 @@ set_cursor_from_name (GtkWidget *entry,
|
||||
if (cursor == NULL)
|
||||
{
|
||||
name = NULL;
|
||||
cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget), GDK_BLANK_CURSOR);
|
||||
cursor = gdk_cursor_new_from_name (gtk_widget_get_display (widget), "none");
|
||||
}
|
||||
|
||||
gdk_window_set_cursor (gtk_widget_get_window (widget), cursor);
|
||||
@ -7020,8 +7020,7 @@ snapshot_widget (GtkButton *button,
|
||||
data->is_toplevel = widget == data->toplevel_button;
|
||||
|
||||
if (!data->cursor)
|
||||
data->cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget),
|
||||
GDK_TARGET);
|
||||
data->cursor = gdk_cursor_new_from_name (gtk_widget_get_display (widget), "crosshair");
|
||||
|
||||
gdk_seat_grab (gdk_device_get_seat (device),
|
||||
gtk_widget_get_window (widget),
|
||||
|
Loading…
Reference in New Issue
Block a user