[anjuta] git: Clear the current branch from the status bar when closing projects
- From: James Liggett <jrliggett src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjuta] git: Clear the current branch from the status bar when closing projects
- Date: Fri, 14 Aug 2009 04:00:30 +0000 (UTC)
commit cf9a2ceda95f2a5c7f133394b1a599844db5b0bb
Author: James Liggett <jrliggett cox net>
Date: Thu Aug 13 20:46:51 2009 -0700
git: Clear the current branch from the status bar when closing projects
plugins/git/plugin.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/git/plugin.c b/plugins/git/plugin.c
index 9d60e61..e9d6771 100644
--- a/plugins/git/plugin.c
+++ b/plugins/git/plugin.c
@@ -649,8 +649,10 @@ on_project_root_removed (AnjutaPlugin *plugin, const gchar *name,
AnjutaUI *ui;
GtkAction *git_fm_menu_action;
Git *git_plugin;
+ AnjutaStatus *status;
git_plugin = ANJUTA_PLUGIN_GIT (plugin);
+ status = anjuta_shell_get_status (plugin->shell, NULL);
g_free (git_plugin->project_root_directory);
git_plugin->project_root_directory = NULL;
@@ -669,6 +671,7 @@ on_project_root_removed (AnjutaPlugin *plugin, const gchar *name,
git_log_window_clear (git_plugin);
git_stash_widget_clear (git_plugin);
+ anjuta_status_set_default (status, _("Branch"), NULL);
g_file_monitor_cancel (git_plugin->bisect_file_monitor);
g_file_monitor_cancel (git_plugin->log_branch_refresh_monitor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]