[anjuta] git: Don't show the origin branch in the Push dialog
- From: James Liggett <jrliggett src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjuta] git: Don't show the origin branch in the Push dialog
- Date: Sun, 2 Aug 2009 02:32:54 +0000 (UTC)
commit cb88c3a242b673e867529f80cb13677e1ef037dd
Author: James Liggett <jrliggett cox net>
Date: Sat Aug 1 19:32:41 2009 -0700
git: Don't show the origin branch in the Push dialog
Allow the user to use origin in one click via the "Repository origin" check box. This also avoids
having two different, redundant methods to select origin when pushing.
plugins/git/git-push-dialog.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/plugins/git/git-push-dialog.c b/plugins/git/git-push-dialog.c
index a48b3f7..65996d9 100644
--- a/plugins/git/git-push-dialog.c
+++ b/plugins/git/git-push-dialog.c
@@ -107,10 +107,16 @@ on_remote_list_command_data_arrived (AnjutaCommand *command, GitUIData *data)
{
remote_name = g_queue_pop_head (output_queue);
- gtk_list_store_append (remote_list_model, &iter);
- gtk_list_store_set (remote_list_model, &iter, 0, remote_name, -1);
-
- if (strcmp (remote_name, "origin") == 0)
+ /* Don't show the origin branch in the list. Origin is specified by
+ * enabling the origin checkbox. As use of origin is such a common
+ * operation, give access to it in one click. Keep the checkbox disabled
+ * if no origin branch exists. */
+ if (strcmp (remote_name, "origin") != 0)
+ {
+ gtk_list_store_append (remote_list_model, &iter);
+ gtk_list_store_set (remote_list_model, &iter, 0, remote_name, -1);
+ }
+ else
gtk_widget_set_sensitive (push_origin_check, TRUE);
g_free (remote_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]