forked from AuroraMiddleware/gtk
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);
|
cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget), c);
|
||||||
gdk_window_set_cursor (gtk_widget_get_window (widget),
|
gdk_window_set_cursor (gtk_widget_get_window (widget),
|
||||||
cursor);
|
cursor);
|
||||||
gdk_cursor_unref (cursor);
|
g_object_unref (cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
@ -8626,7 +8626,7 @@ destroy_properties (GtkWidget *widget,
|
|||||||
|
|
||||||
if (data->cursor)
|
if (data->cursor)
|
||||||
{
|
{
|
||||||
gdk_cursor_unref (data->cursor);
|
g_object_unref (data->cursor);
|
||||||
data->cursor = NULL;
|
data->cursor = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -8763,7 +8763,7 @@ destroy_snapshot_data (GtkWidget *widget,
|
|||||||
|
|
||||||
if (data->cursor)
|
if (data->cursor)
|
||||||
{
|
{
|
||||||
gdk_cursor_unref (data->cursor);
|
g_object_unref (data->cursor);
|
||||||
data->cursor = NULL;
|
data->cursor = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user