diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2016-04-06 15:40:10 +0200 |
---|---|---|
committer | Pavel Grunt <pgrunt@redhat.com> | 2016-04-07 11:53:24 +0200 |
commit | 3c6c563328b67d8dbc089d24fead118dc9ed3667 (patch) | |
tree | ff8969c1e0228ffb0537424ab5e042a52fb41935 | |
parent | 6eb50944b2a082ec0d0e83a4d1f6a338e2956285 (diff) |
Use g_object_unref instead of gdk_cursor_unref
GdkCursor is GObject and gdk_cursor_unref has been deprecated since 3.0
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
-rw-r--r-- | src/spice-widget.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/spice-widget.c b/src/spice-widget.c index f605439..8ca8631 100644 --- a/src/spice-widget.c +++ b/src/spice-widget.c @@ -440,12 +440,12 @@ static void spice_display_finalize(GObject *obj) d->activeseq = NULL; if (d->show_cursor) { - gdk_cursor_unref(d->show_cursor); + g_object_unref(d->show_cursor); d->show_cursor = NULL; } if (d->mouse_cursor) { - gdk_cursor_unref(d->mouse_cursor); + g_object_unref(d->mouse_cursor); d->mouse_cursor = NULL; } @@ -987,7 +987,7 @@ static GdkGrabStatus do_pointer_grab(SpiceDisplay *display) } end: - gdk_cursor_unref(blank); + g_object_unref(blank); return status; } @@ -2368,7 +2368,7 @@ static void cursor_set(SpiceCursorChannel *channel, #endif if (d->show_cursor) { /* unhide */ - gdk_cursor_unref(d->show_cursor); + g_object_unref(d->show_cursor); d->show_cursor = NULL; if (d->mouse_mode == SPICE_MOUSE_MODE_SERVER) { /* keep a hidden cursor, will be shown in cursor_move() */ @@ -2377,7 +2377,7 @@ static void cursor_set(SpiceCursorChannel *channel, } } - gdk_cursor_unref(d->mouse_cursor); + g_object_unref(d->mouse_cursor); d->mouse_cursor = cursor; update_mouse_pointer(display); @@ -2493,7 +2493,7 @@ static void cursor_move(SpiceCursorChannel *channel, gint x, gint y, gpointer da /* apparently we have to restore cursor when "cursor_move" */ if (d->show_cursor != NULL) { - gdk_cursor_unref(d->mouse_cursor); + g_object_unref(d->mouse_cursor); d->mouse_cursor = d->show_cursor; d->show_cursor = NULL; update_mouse_pointer(display); |