[gtk+/gdk-backend] gdk: Use g_object_(un)ref instead of gdk_cursor_(un)ref
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend] gdk: Use g_object_(un)ref instead of gdk_cursor_(un)ref
- Date: Mon, 20 Dec 2010 13:14:42 +0000 (UTC)
commit d65c7d32973317b656660c32be46d694692e05c6
Author: Benjamin Otte <otte redhat com>
Date: Mon Dec 20 03:23:44 2010 +0100
gdk: Use g_object_(un)ref instead of gdk_cursor_(un)ref
gdk/gdkwindow.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index ff945f7..3a3d39a 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -565,7 +565,7 @@ gdk_window_finalize (GObject *object)
cairo_region_destroy (window->input_shape);
if (window->cursor)
- gdk_cursor_unref (window->cursor);
+ g_object_unref (window->cursor);
if (window->device_cursor)
g_hash_table_destroy (window->device_cursor);
@@ -1391,8 +1391,8 @@ gdk_window_new (GdkWindow *parent,
if (window->parent)
window->parent->children = g_list_prepend (window->parent->children, window);
- window->device_cursor = g_hash_table_new_full (NULL, NULL, NULL,
- (GDestroyNotify) gdk_cursor_unref);
+ window->device_cursor = g_hash_table_new_full (NULL, NULL,
+ NULL, g_object_unref);
native = _gdk_native_windows; /* Default */
if (window->parent->window_type == GDK_WINDOW_ROOT)
@@ -6644,14 +6644,14 @@ gdk_window_set_cursor (GdkWindow *window,
if (window->cursor)
{
- gdk_cursor_unref (window->cursor);
+ g_object_unref (window->cursor);
window->cursor = NULL;
}
if (!GDK_WINDOW_DESTROYED (window))
{
if (cursor)
- window->cursor = gdk_cursor_ref (cursor);
+ window->cursor = g_object_ref (cursor);
_gdk_display_pointer_info_foreach (display,
update_cursor_foreach,
@@ -6717,7 +6717,7 @@ gdk_window_set_device_cursor (GdkWindow *window,
if (!cursor)
g_hash_table_remove (window->device_cursor, device);
else
- g_hash_table_replace (window->device_cursor, device, gdk_cursor_ref (cursor));
+ g_hash_table_replace (window->device_cursor, device, g_object_ref (cursor));
if (!GDK_WINDOW_DESTROYED (window))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]