[grilo/wip/jfelder/grilo-test-ui-deprecated: 2/3] grilo-test-ui: Do not use deprecated gdk_cursor_new
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/wip/jfelder/grilo-test-ui-deprecated: 2/3] grilo-test-ui: Do not use deprecated gdk_cursor_new
- Date: Thu, 14 May 2020 18:33:27 +0000 (UTC)
commit 214cd742580ca6ba142ae6cdb626d866affc3878
Author: Jean Felder <jfelder gnome org>
Date: Thu May 14 20:31:17 2020 +0200
grilo-test-ui: Do not use deprecated gdk_cursor_new
It has been deprecated since GTK 3.16. Use gdk_cursor_new_for_display
instead.
tools/grilo-test-ui/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 47f85ad..26f330a 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -706,7 +706,7 @@ operation_started (GrlSource *source, guint operation_id,
/* Set busy cursor */
GdkCursor *cursor;
- cursor = gdk_cursor_new (GDK_WATCH);
+ cursor = gdk_cursor_new_for_display (gtk_widget_get_display (view->window), GDK_WATCH);
gdk_window_set_cursor(gtk_widget_get_window (view->window), cursor);
g_object_unref (cursor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]