[gitg/gtk3: 3/20] Don't use gdk_cursor_unref



commit c6fab2379ece465b430c7bc5bab6d8671c88848f
Author: Garrett Regier <alias301 gmail com>
Date:   Sun Jan 2 20:31:07 2011 -0800

    Don't use gdk_cursor_unref
    
    GdkCursor is now a GObject so use g_object_unref instead.

 gitg/gitg-commit-view.c            |    2 +-
 gitg/gitg-revision-changes-panel.c |    4 ++--
 gitg/gitg-revision-details-panel.c |    4 ++--
 gitg/gitg-window.c                 |    4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gitg/gitg-commit-view.c b/gitg/gitg-commit-view.c
index ee82ce0..f1fe5fe 100644
--- a/gitg/gitg-commit-view.c
+++ b/gitg/gitg-commit-view.c
@@ -147,7 +147,7 @@ gitg_commit_view_finalize (GObject *object)
 	g_object_unref (view->priv->shell);
 	g_object_unref (view->priv->ui_manager);
 
-	gdk_cursor_unref (view->priv->hand);
+	g_object_unref (view->priv->hand);
 
 	G_OBJECT_CLASS (gitg_commit_view_parent_class)->finalize (object);
 }
diff --git a/gitg/gitg-revision-changes-panel.c b/gitg/gitg-revision-changes-panel.c
index ed0c403..06cada8 100644
--- a/gitg/gitg-revision-changes-panel.c
+++ b/gitg/gitg-revision-changes-panel.c
@@ -704,7 +704,7 @@ on_diff_files_begin_loading (GitgShell                *shell,
 	gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (self->priv->diff_files)),
 	                       cursor);
 
-	gdk_cursor_unref (cursor);
+	g_object_unref (cursor);
 }
 
 static void
@@ -819,7 +819,7 @@ on_diff_begin_loading (GitgShell                *shell,
 	GdkCursor *cursor = gdk_cursor_new (GDK_WATCH);
 	gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET(self->priv->diff)),
 	                       cursor);
-	gdk_cursor_unref (cursor);
+	g_object_unref (cursor);
 }
 
 static void
diff --git a/gitg/gitg-revision-details-panel.c b/gitg/gitg-revision-details-panel.c
index 91413f6..93c9104 100644
--- a/gitg/gitg-revision-details-panel.c
+++ b/gitg/gitg-revision-details-panel.c
@@ -235,7 +235,7 @@ on_shell_begin (GitgShell                *shell,
 
 	panel->priv->in_stat = FALSE;
 
-	gdk_cursor_unref (cursor);
+	g_object_unref (cursor);
 }
 
 static void
@@ -635,7 +635,7 @@ update_parents (GitgRevisionDetailsPanel *self)
 		}
 	}
 
-	gdk_cursor_unref (cursor);
+	g_object_unref (cursor);
 	g_strfreev (parents);
 }
 
diff --git a/gitg/gitg-window.c b/gitg/gitg-window.c
index 4a90bd6..2b34195 100644
--- a/gitg/gitg-window.c
+++ b/gitg/gitg-window.c
@@ -192,7 +192,7 @@ gitg_window_finalize (GObject *object)
 	GitgWindow *self = GITG_WINDOW(object);
 
 	g_timer_destroy (self->priv->load_timer);
-	gdk_cursor_unref (self->priv->hand);
+	g_object_unref (self->priv->hand);
 
 	GList *copy = g_list_copy (self->priv->branch_actions);
 	GList *item;
@@ -1697,7 +1697,7 @@ on_repository_load (GitgRepository *repository,
 {
 	GdkCursor *cursor = gdk_cursor_new (GDK_WATCH);
 	gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (window->priv->tree_view)), cursor);
-	gdk_cursor_unref (cursor);
+	g_object_unref (cursor);
 
 	gtk_statusbar_push (window->priv->statusbar, 0, _ ("Begin loading repository"));
 



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