]> Pileus Git - ~andy/gtk/commitdiff
gdk: s/gdk_cursor_unref/g_object_unref/
authorMichael Natterer <mitch@gimp.org>
Sat, 15 Oct 2011 12:35:28 +0000 (14:35 +0200)
committerMichael Natterer <mitch@gimp.org>
Sat, 15 Oct 2011 12:35:28 +0000 (14:35 +0200)
gdk/broadway/gdkwindow-broadway.c
gdk/wayland/gdkwindow-wayland.c
gdk/x11/gdkcursor-x11.c
gdk/x11/gdkwindow-x11.c

index ba51e1c322d181ba6d532ef011cbd83976fc22d2..acebcb9d09705b66cc0fb73713b11f105888855b 100644 (file)
@@ -257,7 +257,7 @@ gdk_window_impl_broadway_init (GdkWindowImplBroadway *impl)
 {
   impl->toplevel_window_type = -1;
   impl->device_cursor = g_hash_table_new_full (NULL, NULL, NULL,
-                                               (GDestroyNotify) gdk_cursor_unref);
+                                               (GDestroyNotify) g_object_unref);
 }
 
 static void
@@ -286,7 +286,7 @@ gdk_window_impl_broadway_finalize (GObject *object)
   g_hash_table_remove (broadway_display->id_ht, GINT_TO_POINTER(impl->id));
 
   if (impl->cursor)
-    gdk_cursor_unref (impl->cursor);
+    g_object_unref (impl->cursor);
 
   g_hash_table_destroy (impl->device_cursor);
 
index b2be78b34d10fe148bf97a4b77a5807938663014..243c1ff8466d1b953589a66bec23caef62ac2a1a 100644 (file)
@@ -360,7 +360,7 @@ gdk_window_impl_wayland_finalize (GObject *object)
   impl = GDK_WINDOW_IMPL_WAYLAND (object);
 
   if (impl->cursor)
-    gdk_cursor_unref (impl->cursor);
+    g_object_unref (impl->cursor);
   if (impl->server_surface)
     cairo_surface_destroy (impl->server_surface);
 
index e379748a010deafa757c600334ae2e5c086d3a43..5a12ef06c1ec884fc9cd63bb12a554fa4cdff8f4 100644 (file)
@@ -152,7 +152,7 @@ _gdk_x11_cursor_display_finalize (GdkDisplay *display)
       if (gdk_cursor_get_display (GDK_CURSOR (cursor)) == display)
         {
           GSList* olditem;
-          gdk_cursor_unref ((GdkCursor*) cursor);
+          g_object_unref ((GdkCursor*) cursor);
           /* Remove this item from the list */
           *(itemp) = item->next;
           olditem = item;
index 250ac41475340ecdf8331a1f5cc012209c7e57a5..959eea0428d524bf3c8e427f13cd2fc7b49333f3 100644 (file)
@@ -273,7 +273,7 @@ gdk_window_impl_x11_finalize (GObject *object)
   g_free (impl->toplevel);
 
   if (impl->cursor)
-    gdk_cursor_unref (impl->cursor);
+    g_object_unref (impl->cursor);
 
   g_hash_table_destroy (impl->device_cursor);