[gnome-panel/gtk3] Fix use of deprecated gdk_cursor_unref()



commit fb1ca6bfbe40f2bd171a4dfda8b060bf5242b2a7
Author: Germán Póo-Caamaño <gpoo gnome org>
Date:   Fri Jan 7 02:45:47 2011 -0800

    Fix use of deprecated gdk_cursor_unref()
    
    Replaced gdk_cursor_unref() by g_object_unref()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=627455
    
    Signed-off-by: Germán Póo-Caamaño <gpoo gnome org>

 gnome-panel/menu.c             |    2 +-
 gnome-panel/panel-force-quit.c |    2 +-
 gnome-panel/panel-toplevel.c   |    2 +-
 gnome-panel/panel-util.c       |    2 +-
 gnome-panel/panel-widget.c     |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnome-panel/menu.c b/gnome-panel/menu.c
index 22a6d05..569ed02 100644
--- a/gnome-panel/menu.c
+++ b/gnome-panel/menu.c
@@ -1075,7 +1075,7 @@ drag_end_menu_cb (GtkWidget *widget, GdkDragContext     *context)
 	    }
 	}
 
-      gdk_cursor_unref (cursor);
+      g_object_unref (cursor);
     }
 }
 
diff --git a/gnome-panel/panel-force-quit.c b/gnome-panel/panel-force-quit.c
index 39dda58..fa51caa 100644
--- a/gnome-panel/panel-force-quit.c
+++ b/gnome-panel/panel-force-quit.c
@@ -298,7 +298,7 @@ panel_force_quit (GdkScreen *screen,
 	cross = gdk_cursor_new (GDK_CROSS);
 	status = gdk_pointer_grab (root, FALSE, GDK_BUTTON_PRESS_MASK,
 				   NULL, cross, time);
-	gdk_cursor_unref (cross);
+	g_object_unref (cross);
 	if (status != GDK_GRAB_SUCCESS) {
 		g_warning ("Pointer grab failed\n");
 		remove_popup (popup);
diff --git a/gnome-panel/panel-toplevel.c b/gnome-panel/panel-toplevel.c
index 1a135c9..e2ae604 100644
--- a/gnome-panel/panel-toplevel.c
+++ b/gnome-panel/panel-toplevel.c
@@ -502,7 +502,7 @@ panel_toplevel_begin_grab_op (PanelToplevel   *toplevel,
 	gdk_pointer_grab (window, FALSE,
 			  GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK,
 			  NULL, cursor, time_);
-	gdk_cursor_unref (cursor);
+	g_object_unref (cursor);
 
 	if (grab_keyboard)
 		gdk_keyboard_grab (window, FALSE, time_);
diff --git a/gnome-panel/panel-util.c b/gnome-panel/panel-util.c
index f103a0c..051e67a 100644
--- a/gnome-panel/panel-util.c
+++ b/gnome-panel/panel-util.c
@@ -110,7 +110,7 @@ panel_push_window_busy (GtkWidget *window)
 		if (win != NULL) {
 			GdkCursor *cursor = gdk_cursor_new (GDK_WATCH);
 			gdk_window_set_cursor (win, cursor);
-			gdk_cursor_unref (cursor);
+			g_object_unref (cursor);
 			gdk_flush ();
 		}
 	}
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index d57dbe7..4269f43 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -1908,7 +1908,7 @@ panel_widget_applet_drag_start (PanelWidget *panel,
 					   APPLET_EVENT_MASK, NULL,
 					   fleur_cursor, time_);
 
-		gdk_cursor_unref (fleur_cursor);
+		g_object_unref (fleur_cursor);
 		gdk_flush ();
 
 		if (status != GDK_GRAB_SUCCESS) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]