mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
testgtk: Use g_object_unref instead of gdk_cursor_unref
This commit is contained in:
parent
e622ae9a68
commit
73d8ffd74f
@ -4880,7 +4880,7 @@ set_cursor (GtkWidget *spinner,
|
||||
cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget), c);
|
||||
gdk_window_set_cursor (gtk_widget_get_window (widget),
|
||||
cursor);
|
||||
gdk_cursor_unref (cursor);
|
||||
g_object_unref (cursor);
|
||||
}
|
||||
|
||||
static gint
|
||||
@ -8626,7 +8626,7 @@ destroy_properties (GtkWidget *widget,
|
||||
|
||||
if (data->cursor)
|
||||
{
|
||||
gdk_cursor_unref (data->cursor);
|
||||
g_object_unref (data->cursor);
|
||||
data->cursor = NULL;
|
||||
}
|
||||
|
||||
@ -8763,7 +8763,7 @@ destroy_snapshot_data (GtkWidget *widget,
|
||||
|
||||
if (data->cursor)
|
||||
{
|
||||
gdk_cursor_unref (data->cursor);
|
||||
g_object_unref (data->cursor);
|
||||
data->cursor = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user