[gitg/gtk3] Cast to GDestroyNotify.



commit 11b93fbb30eed017dabcb12a7b6caa9b4a7e219c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Feb 9 11:30:47 2011 +0100

    Cast to GDestroyNotify.

 gitg/gitg-commit-view.c          |    4 ++--
 gitg/gitg-repository-dialog.c    |    4 ++--
 gitg/gitg-revision-files-panel.c |    2 +-
 gitg/gitg-window.c               |   20 ++++++++++----------
 4 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/gitg/gitg-commit-view.c b/gitg/gitg-commit-view.c
index da7a79d..5425307 100644
--- a/gitg/gitg-commit-view.c
+++ b/gitg/gitg-commit-view.c
@@ -369,7 +369,7 @@ get_selected_files(GtkTreeView             *tree_view,
 	}
 	else
 	{
-		g_list_free_full (items, gtk_tree_path_free);
+		g_list_free_full (items, (GDestroyNotify)gtk_tree_path_free);
 	}
 
 	if (files)
@@ -420,7 +420,7 @@ check_selection(GtkTreeView    *tree_view,
 		ret = TRUE;
 	}
 
-	g_list_free_full (paths, gtk_tree_path_free);
+	g_list_free_full (paths, (GDestroyNotify)gtk_tree_path_free);
 	return ret;
 }
 
diff --git a/gitg/gitg-repository-dialog.c b/gitg/gitg-repository-dialog.c
index 172a01d..263d8fc 100644
--- a/gitg/gitg-repository-dialog.c
+++ b/gitg/gitg-repository-dialog.c
@@ -230,7 +230,7 @@ update_fetch (GitgRepositoryDialog *dialog)
 
 	dialog->priv->show_fetch = show_fetch;
 
-	g_list_free_full (rows, gtk_tree_path_free);
+	g_list_free_full (rows, (GDestroyNotify)gtk_tree_path_free);
 }
 
 static void
@@ -247,7 +247,7 @@ update_sensitivity (GitgRepositoryDialog *dialog)
 
 	update_fetch (dialog);
 
-	g_list_free_full (rows, gtk_tree_path_free);
+	g_list_free_full (rows, (GDestroyNotify)gtk_tree_path_free);
 }
 
 static void
diff --git a/gitg/gitg-revision-files-panel.c b/gitg/gitg-revision-files-panel.c
index 91885d7..3caa690 100644
--- a/gitg/gitg-revision-files-panel.c
+++ b/gitg/gitg-revision-files-panel.c
@@ -287,7 +287,7 @@ on_selection_changed (GtkTreeSelection     *selection,
 		path = gtk_tree_path_copy ((GtkTreePath *)rows->data);
 	}
 
-	g_list_free_full (rows, gtk_tree_path_free);
+	g_list_free_full (rows, (GDestroyNotify)gtk_tree_path_free);
 
 	if (!path)
 	{
diff --git a/gitg/gitg-window.c b/gitg/gitg-window.c
index 7825e29..6e11ab0 100644
--- a/gitg/gitg-window.c
+++ b/gitg/gitg-window.c
@@ -1642,7 +1642,7 @@ fill_branches_combo (GitgWindow *window)
 		gtk_combo_box_set_active_iter (window->priv->combo_branches, &active);
 	}
 
-	g_slist_free_full (refs, gitg_ref_free);
+	g_slist_free_full (refs, (GDestroyNotify)gitg_ref_free);
 
 	if (active_from_selection)
 	{
@@ -2699,7 +2699,7 @@ update_merge_rebase (GitgWindow *window,
 		}
 	}
 
-	g_slist_free_full (refs, gitg_ref_free);
+	g_slist_free_full (refs, (GDestroyNotify)gitg_ref_free);
 
 	if (gitg_ref_get_ref_type (ref) == GITG_REF_TYPE_BRANCH)
 	{
@@ -2781,7 +2781,7 @@ has_local_ref (GitgWindow  *window,
 		}
 	}
 
-	g_slist_free_full (refs, gitg_ref_free);
+	g_slist_free_full (refs, (GDestroyNotify)gitg_ref_free);
 
 	return ret;
 }
@@ -2940,7 +2940,7 @@ on_cherry_pick_activated (GtkAction  *action,
 
 	gitg_revision_unref (rev);
 
-	g_list_free_full (rows, gtk_tree_path_free);
+	g_list_free_full (rows, (GDestroyNotify)gtk_tree_path_free);
 }
 
 static void
@@ -3025,7 +3025,7 @@ update_cherry_pick (GitgWindow *window)
 		}
 	}
 
-	g_slist_free_full (refs, gitg_ref_free);
+	g_slist_free_full (refs, (GDestroyNotify)gitg_ref_free);
 }
 
 static gboolean
@@ -3091,7 +3091,7 @@ popup_revision (GitgWindow     *window,
 		gtk_action_set_visible (tag, FALSE);
 	}
 
-	g_list_free_full (rows, gtk_tree_path_free);
+	g_list_free_full (rows, (GDestroyNotify)gtk_tree_path_free);
 
 	if (!show)
 	{
@@ -3367,7 +3367,7 @@ on_format_patch_response (GtkDialog       *dialog,
 		}
 	}
 
-	g_list_free_full (info->revisions, gitg_revision_unref);
+	g_list_free_full (info->revisions, (GDestroyNotify)gitg_revision_unref);
 	g_slice_free (FormatPatchInfo, info);
 
 	gtk_widget_destroy (GTK_WIDGET (dialog));
@@ -3452,7 +3452,7 @@ on_revision_format_patch_activate (GtkAction  *action,
 
 	gtk_widget_show (dialog);
 
-	g_list_free_full (rows, gtk_tree_path_free);
+	g_list_free_full (rows, (GDestroyNotify)gtk_tree_path_free);
 }
 
 void
@@ -3495,7 +3495,7 @@ on_revision_new_branch_activate (GtkAction  *action,
 		gitg_revision_unref (rev);
 	}
 
-	g_list_free_full (rows, gtk_tree_path_free);
+	g_list_free_full (rows, (GDestroyNotify)gtk_tree_path_free);
 }
 
 void
@@ -3546,7 +3546,7 @@ on_revision_tag_activate (GtkAction  *action,
 		gitg_revision_unref (rev);
 	}
 
-	g_list_free_full (rows, gtk_tree_path_free);
+	g_list_free_full (rows, (GDestroyNotify)gtk_tree_path_free);
 }
 
 void



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