[anjuta] git: Clear the branch combo in the log viewer, and the selected branch.
- From: James Liggett <jrliggett src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjuta] git: Clear the branch combo in the log viewer, and the selected branch.
- Date: Sat, 13 Jun 2009 19:30:13 -0400 (EDT)
commit f2b988a03cfac9f3882495c57344ebce8943ca79
Author: James Liggett <jrliggett cox net>
Date: Sat Jun 13 16:25:33 2009 -0700
git: Clear the branch combo in the log viewer, and the selected branch.
When switching projects, it combo box should select the currently active branch, not the
previously set active branch from the last project.
plugins/git/git-log-dialog.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/git/git-log-dialog.c b/plugins/git/git-log-dialog.c
index 9d0318b..4cfd8a5 100644
--- a/plugins/git/git-log-dialog.c
+++ b/plugins/git/git-log-dialog.c
@@ -1052,14 +1052,23 @@ git_log_window_clear (Git *plugin)
{
LogData *data;
GtkWidget *log_text_view;
+ GtkWidget *log_branch_combo;
+ GtkListStore *log_branch_combo_model;
GtkTextBuffer *buffer;
data = g_object_get_data (G_OBJECT (plugin->log_viewer), "log-data");
log_text_view = GTK_WIDGET (gtk_builder_get_object (data->bxml, "log_text_view"));
+ log_branch_combo = GTK_WIDGET (gtk_builder_get_object (data->bxml,
+ "log_branch_combo"));
+ log_branch_combo_model = GTK_LIST_STORE (gtk_builder_get_object (data->bxml,
+ "log_branch_combo_model"));
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (log_text_view));
gtk_list_store_clear (data->list_store);
+ gtk_list_store_clear (log_branch_combo_model);
gtk_text_buffer_set_text (buffer, "", 0);
+
+ g_object_set_data (G_OBJECT (log_branch_combo), "selected-branch", NULL);
}
GitRevision *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]