[gtk+] tests: Stop using gdk_cursor_new_for_display
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Stop using gdk_cursor_new_for_display
- Date: Thu, 2 Nov 2017 01:22:53 +0000 (UTC)
commit 47fb3292796c5414e19da7733bf0b9745a94d00c
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Nov 1 21:22:21 2017 -0400
tests: Stop using gdk_cursor_new_for_display
The name-based api is the one we prefer.
tests/testgtk.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index af1ead9..9786a52 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]