[anjuta] git: Fix the check condition in git_check_branches
- From: James Liggett <jrliggett src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjuta] git: Fix the check condition in git_check_branches
- Date: Fri, 31 Jul 2009 21:35:28 +0000 (UTC)
commit c2e08d95af5a9b50d40aed7a348831bfae9ecc02
Author: James Liggett <jrliggett cox net>
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]