[anjuta] git: Only show one command pane at any time



commit e261ec11a570af156e917c7874bfc8d987aeb36b
Author: Johannes Schmid <jhs gnome org>
Date:   Mon Nov 21 20:48:04 2011 +0100

    git: Only show one command pane at any time
    
    Showing multiple command panes is confusing and takes up a lot of vertical screen space.

 plugins/git/git-add-files-pane.c       |    6 +++---
 plugins/git/git-add-remote-pane.c      |    6 +++---
 plugins/git/git-apply-mailbox-pane.c   |    6 +++---
 plugins/git/git-checkout-pane.c        |    6 +++---
 plugins/git/git-cherry-pick-pane.c     |    6 +++---
 plugins/git/git-commit-pane.c          |    5 +++--
 plugins/git/git-create-branch-pane.c   |    6 +++---
 plugins/git/git-create-tag-pane.c      |    6 +++---
 plugins/git/git-delete-branches-pane.c |    6 +++---
 plugins/git/git-merge-pane.c           |    6 +++---
 plugins/git/git-patch-series-pane.c    |    6 +++---
 plugins/git/git-pull-pane.c            |    6 +++---
 plugins/git/git-push-pane.c            |    6 +++---
 plugins/git/git-remove-files-pane.c    |    6 +++---
 plugins/git/git-reset-pane.c           |    6 +++---
 plugins/git/git-revert-pane.c          |    6 +++---
 plugins/git/git-stash-changes-pane.c   |    6 +++---
 17 files changed, 51 insertions(+), 50 deletions(-)
---
diff --git a/plugins/git/git-add-files-pane.c b/plugins/git/git-add-files-pane.c
index 831e1ae..85bb0e8 100644
--- a/plugins/git/git-add-files-pane.c
+++ b/plugins/git/git-add-files-pane.c
@@ -153,7 +153,7 @@ on_add_button_clicked (GtkAction *action, Git* plugin)
 
 	pane = git_add_files_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "AddFiles", 
-	                      _("Add Files"), NULL, pane, GDL_DOCK_BOTTOM,
-	                      NULL, 0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "AddFiles", 
+	                                  _("Add Files"), NULL, pane, GDL_DOCK_BOTTOM,
+	                                  NULL, 0, NULL);
 }
diff --git a/plugins/git/git-add-remote-pane.c b/plugins/git/git-add-remote-pane.c
index 367b041..340f937 100644
--- a/plugins/git/git-add-remote-pane.c
+++ b/plugins/git/git-add-remote-pane.c
@@ -175,7 +175,7 @@ on_add_remote_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_add_remote_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "AddRemote", 
-	                      _("Add Remote"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
-	                      NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "AddRemote", 
+	                                  _("Add Remote"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
+	                                  NULL);
 }
\ No newline at end of file
diff --git a/plugins/git/git-apply-mailbox-pane.c b/plugins/git/git-apply-mailbox-pane.c
index 1d69363..650912b 100644
--- a/plugins/git/git-apply-mailbox-pane.c
+++ b/plugins/git/git-apply-mailbox-pane.c
@@ -153,9 +153,9 @@ on_apply_mailbox_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_apply_mailbox_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "ApplyMailbox", 
-	                      _("Apply Mailbox Files"), NULL, pane,  
-	                      GDL_DOCK_BOTTOM, NULL, 0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "ApplyMailbox", 
+	                                  _("Apply Mailbox Files"), NULL, pane,  
+	                                  GDL_DOCK_BOTTOM, NULL, 0, NULL);
 }
 
 void
diff --git a/plugins/git/git-checkout-pane.c b/plugins/git/git-checkout-pane.c
index ee97deb..0d083bc 100644
--- a/plugins/git/git-checkout-pane.c
+++ b/plugins/git/git-checkout-pane.c
@@ -143,7 +143,7 @@ on_checkout_button_clicked (GtkAction *action, Git *plugin)
 
 	checkout_pane = git_checkout_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "Checkout",
-	                      _("Check Out Files"), NULL, checkout_pane,
-	                      GDL_DOCK_BOTTOM, NULL, 0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "Checkout",
+	                                  _("Check Out Files"), NULL, checkout_pane,
+	                                  GDL_DOCK_BOTTOM, NULL, 0, NULL);
 }
diff --git a/plugins/git/git-cherry-pick-pane.c b/plugins/git/git-cherry-pick-pane.c
index 35e791f..97327b4 100644
--- a/plugins/git/git-cherry-pick-pane.c
+++ b/plugins/git/git-cherry-pick-pane.c
@@ -169,7 +169,7 @@ on_cherry_pick_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_cherry_pick_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "CherryPick", 
-	                      _("Cherry Pick"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 
-	                      0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "CherryPick", 
+	                                  _("Cherry Pick"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 
+	                                  0, NULL);
 }
\ No newline at end of file
diff --git a/plugins/git/git-commit-pane.c b/plugins/git/git-commit-pane.c
index 32f90a7..9a52ca4 100644
--- a/plugins/git/git-commit-pane.c
+++ b/plugins/git/git-commit-pane.c
@@ -293,6 +293,7 @@ on_commit_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_commit_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "Commit", _("Commit"),
-	                      NULL, pane, GDL_DOCK_BOTTOM, NULL, 0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock),
+	                                  "Commit", _("Commit"),
+	                                  NULL, pane, GDL_DOCK_BOTTOM, NULL, 0, NULL);
 }
diff --git a/plugins/git/git-create-branch-pane.c b/plugins/git/git-create-branch-pane.c
index 9cbd860..5aef30c 100644
--- a/plugins/git/git-create-branch-pane.c
+++ b/plugins/git/git-create-branch-pane.c
@@ -165,7 +165,7 @@ on_create_branch_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_create_branch_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "CreateBranch", 
-	                      "Create Branch", NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
-	                      NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "CreateBranch", 
+	                                  "Create Branch", NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
+	                                  NULL);
 }
\ No newline at end of file
diff --git a/plugins/git/git-create-tag-pane.c b/plugins/git/git-create-tag-pane.c
index 780e65e..204f235 100644
--- a/plugins/git/git-create-tag-pane.c
+++ b/plugins/git/git-create-tag-pane.c
@@ -214,7 +214,7 @@ on_create_tag_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_create_tag_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "CreateTag", 
-	                      _("Create Tag"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
-	                      NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "CreateTag", 
+	                                  _("Create Tag"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
+	                                  NULL);
 }
\ No newline at end of file
diff --git a/plugins/git/git-delete-branches-pane.c b/plugins/git/git-delete-branches-pane.c
index 5e59448..8116def 100644
--- a/plugins/git/git-delete-branches-pane.c
+++ b/plugins/git/git-delete-branches-pane.c
@@ -191,7 +191,7 @@ on_delete_branches_button_clicked (GtkAction *action, Git *plugin)
 
 	delete_branches_pane = git_delete_branches_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "DeleteBranches",
-	                      "Delete Branches", NULL, delete_branches_pane,
-	                      GDL_DOCK_BOTTOM, NULL, 0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "DeleteBranches",
+	                                  "Delete Branches", NULL, delete_branches_pane,
+	                                  GDL_DOCK_BOTTOM, NULL, 0, NULL);
 }
diff --git a/plugins/git/git-merge-pane.c b/plugins/git/git-merge-pane.c
index ae5c5ee..01b974e 100644
--- a/plugins/git/git-merge-pane.c
+++ b/plugins/git/git-merge-pane.c
@@ -206,7 +206,7 @@ on_merge_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_merge_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "Merge", 
-	                      _("Merge"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
-	                      NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "Merge", 
+	                                  _("Merge"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
+	                                  NULL);
 }
diff --git a/plugins/git/git-patch-series-pane.c b/plugins/git/git-patch-series-pane.c
index 78b7b98..cea6ff7 100644
--- a/plugins/git/git-patch-series-pane.c
+++ b/plugins/git/git-patch-series-pane.c
@@ -163,7 +163,7 @@ on_patch_series_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_patch_series_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "PatchSeries", 
-	                      _("Generate Patch Series"), NULL, pane,  
-	                      GDL_DOCK_BOTTOM, NULL, 0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "PatchSeries", 
+	                                  _("Generate Patch Series"), NULL, pane,  
+	                                  GDL_DOCK_BOTTOM, NULL, 0, NULL);
 }
\ No newline at end of file
diff --git a/plugins/git/git-pull-pane.c b/plugins/git/git-pull-pane.c
index 2b0c080..6847d8d 100644
--- a/plugins/git/git-pull-pane.c
+++ b/plugins/git/git-pull-pane.c
@@ -234,7 +234,7 @@ on_pull_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_pull_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "Pull", 
-	                      _("Pull"), NULL, pane, GDL_DOCK_BOTTOM,
-	                      NULL, 0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "Pull", 
+	                                  _("Pull"), NULL, pane, GDL_DOCK_BOTTOM,
+	                                  NULL, 0, NULL);
 }
diff --git a/plugins/git/git-push-pane.c b/plugins/git/git-push-pane.c
index 86242ca..4d69ae0 100644
--- a/plugins/git/git-push-pane.c
+++ b/plugins/git/git-push-pane.c
@@ -434,7 +434,7 @@ on_push_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_push_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "Push", 
-	                      _("Push"), NULL, pane, GDL_DOCK_BOTTOM,
-	                      NULL, 0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "Push", 
+	                                  _("Push"), NULL, pane, GDL_DOCK_BOTTOM,
+	                                  NULL, 0, NULL);
 }
diff --git a/plugins/git/git-remove-files-pane.c b/plugins/git/git-remove-files-pane.c
index f2b0b8f..ab45f74 100644
--- a/plugins/git/git-remove-files-pane.c
+++ b/plugins/git/git-remove-files-pane.c
@@ -153,7 +153,7 @@ on_remove_button_clicked (GtkAction *action, Git* plugin)
 
 	pane = git_remove_files_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "RemoveFiles", 
-	                      _("Remove Files"), NULL, pane, GDL_DOCK_BOTTOM,
-	                      NULL, 0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "RemoveFiles", 
+	                                  _("Remove Files"), NULL, pane, GDL_DOCK_BOTTOM,
+	                                  NULL, 0, NULL);
 }
diff --git a/plugins/git/git-reset-pane.c b/plugins/git/git-reset-pane.c
index 7e86406..df861f4 100644
--- a/plugins/git/git-reset-pane.c
+++ b/plugins/git/git-reset-pane.c
@@ -163,7 +163,7 @@ on_reset_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_reset_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "Reset", 
-	                      _("Reset"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
-	                      NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "Reset", 
+	                                  _("Reset"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
+	                                  NULL);
 }
\ No newline at end of file
diff --git a/plugins/git/git-revert-pane.c b/plugins/git/git-revert-pane.c
index f99a467..172e999 100644
--- a/plugins/git/git-revert-pane.c
+++ b/plugins/git/git-revert-pane.c
@@ -158,7 +158,7 @@ on_revert_button_clicked (GtkAction *action, Git *plugin)
 
 	pane = git_revert_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "Revert", 
-	                      _("Revert"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
-	                      NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "Revert", 
+	                                  _("Revert"), NULL, pane, GDL_DOCK_BOTTOM, NULL, 0,
+	                                  NULL);
 }
\ No newline at end of file
diff --git a/plugins/git/git-stash-changes-pane.c b/plugins/git/git-stash-changes-pane.c
index afc7ab4..1a2f0b2 100644
--- a/plugins/git/git-stash-changes-pane.c
+++ b/plugins/git/git-stash-changes-pane.c
@@ -154,7 +154,7 @@ on_stash_changes_button_clicked (GtkAction *action, Git *plugin)
 
 	stash_changes_pane = git_stash_changes_pane_new (plugin);
 
-	anjuta_dock_add_pane (ANJUTA_DOCK (plugin->dock), "StashChanges",
-	                      _("Stash Uncommitted Changes"), NULL, 
-	                      stash_changes_pane, GDL_DOCK_BOTTOM, NULL, 0, NULL);
+	anjuta_dock_replace_command_pane (ANJUTA_DOCK (plugin->dock), "StashChanges",
+	                                  _("Stash Uncommitted Changes"), NULL, 
+	                                  stash_changes_pane, GDL_DOCK_BOTTOM, NULL, 0, NULL);
 }



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