[gtk+/gdk-backend] testgtk: Use g_object_unref instead of gdk_cursor_unref
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend] testgtk: Use g_object_unref instead of gdk_cursor_unref
- Date: Mon, 20 Dec 2010 13:14:57 +0000 (UTC)
commit 7bfb338cc0c8a5db12547fd3e5df5f9142909cda
Author: Benjamin Otte <otte redhat com>
Date: Mon Dec 20 03:13:47 2010 +0100
testgtk: Use g_object_unref instead of gdk_cursor_unref
tests/testgtk.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index dee4802..f560c4e 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]