diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-02-08 17:56:28 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-02-12 07:04:30 +0100 |
commit | 217ce17fff3e4eb3670a03c3d48771a03bf3f9d9 (patch) | |
tree | 039635cef825eb633d295d834d0b881af439863f /mate-panel/panel-util.c | |
parent | f96389e674b83aa89e9ed943120fe5c0390626b7 (diff) | |
download | mate-panel-217ce17fff3e4eb3670a03c3d48771a03bf3f9d9.tar.bz2 mate-panel-217ce17fff3e4eb3670a03c3d48771a03bf3f9d9.tar.xz |
do not use deprecated gdk_cursor_new, use
gdk_cursor_new_for_display for both GTK versions
Diffstat (limited to 'mate-panel/panel-util.c')
-rw-r--r-- | mate-panel/panel-util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mate-panel/panel-util.c b/mate-panel/panel-util.c index 49048289..1567a73c 100644 --- a/mate-panel/panel-util.c +++ b/mate-panel/panel-util.c @@ -112,7 +112,9 @@ panel_push_window_busy (GtkWidget *window) win = gtk_widget_get_window (window); if (win != NULL) { - GdkCursor *cursor = gdk_cursor_new (GDK_WATCH); + GdkCursor *cursor = gdk_cursor_new_for_display (gdk_display_get_default (), + GDK_WATCH); + gdk_window_set_cursor (win, cursor); #if GTK_CHECK_VERSION (3, 0, 0) g_object_unref (cursor); |