[gitg] Fixed refreshing of history keeping correct branch



commit 4bac65b146a63410ad13303d284a1d9749c6dccc
Author: Jesse van den Kieboom <jesse icecrew nl>
Date:   Thu Apr 23 22:59:07 2009 +0200

    Fixed refreshing of history keeping correct branch
---
 gitg/gitg-repository.c |    2 --
 gitg/gitg-window.c     |    5 +++++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/gitg/gitg-repository.c b/gitg/gitg-repository.c
index 439057d..3a0a860 100644
--- a/gitg/gitg-repository.c
+++ b/gitg/gitg-repository.c
@@ -874,8 +874,6 @@ load_revisions(GitgRepository *self, gint argc, gchar const **av, GError **error
 	else
 		argv[1] = g_strdup("--pretty=format:%H\x01%an\x01%s\x01%P\x01%at");
 	
-	//argv[2] = g_strdup("--topo-order");
-	
 	gchar *head = NULL;
 	
 	if (argc <= 0)
diff --git a/gitg/gitg-window.c b/gitg/gitg-window.c
index b312056..c439012 100644
--- a/gitg/gitg-window.c
+++ b/gitg/gitg-window.c
@@ -707,7 +707,9 @@ fill_branches_combo(GitgWindow *window)
 static void
 on_repository_load(GitgRepository *repository, GitgWindow *window)
 {
+	g_signal_handlers_block_by_func(window->priv->combo_branches, on_branches_combo_changed, window);
 	fill_branches_combo(window);
+	g_signal_handlers_unblock_by_func(window->priv->combo_branches, on_branches_combo_changed, window);
 }
 
 static void
@@ -903,7 +905,10 @@ on_view_refresh(GtkAction *action, GitgWindow *window)
 {
 	if (window->priv->repository && gitg_repository_get_path(window->priv->repository) != NULL)
 	{
+		g_signal_handlers_block_by_func(window->priv->combo_branches, on_branches_combo_changed, window);
 		clear_branches_combo(window, TRUE);
+		g_signal_handlers_unblock_by_func(window->priv->combo_branches, on_branches_combo_changed, window);
+
 		gitg_repository_reload(window->priv->repository);
 	}
 }



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