logo       

[anjuta] git: Fix the check condition in git_check_branches: msg#08206

svn-commits-list

Subject: [anjuta] git: Fix the check condition in git_check_branches

commit c2e08d95af5a9b50d40aed7a348831bfae9ecc02
Author: James Liggett <jrliggett@xxxxxxx>
Date: Fri Jul 31 14:34:29 2009 -0700

git: Fix the check condition in git_check_branches

gtk_combo_box_get_active returns -1, not 0, when there is no item selected.

plugins/git/git-ui-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/git/git-ui-utils.c b/plugins/git/git-ui-utils.c
index 31aa4d5..4475397 100644
--- a/plugins/git/git-ui-utils.c
+++ b/plugins/git/git-ui-utils.c
@@ -145,7 +145,7 @@ git_check_branches (GtkComboBox *combo_box)
GtkWidget *parent;
GtkWidget *dialog;

- ret = (gtk_combo_box_get_active (combo_box) > 0);
+ ret = (gtk_combo_box_get_active (combo_box) > -1);

if (!ret)
{
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise