[ekiga] Use the first value as default in string_option_menu.



commit 2af19a1511a2a60919c3ef78c84e42e134f29631
Author: Damien Sandras <dsandras seconix com>
Date:   Thu Oct 15 20:35:25 2009 +0200

    Use the first value as default in string_option_menu.
    
    If the value is not found, take the first valid choice as default
    choice.

 lib/gui/gmpreferences.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/gui/gmpreferences.c b/lib/gui/gmpreferences.c
index e113607..d1e5f0d 100644
--- a/lib/gui/gmpreferences.c
+++ b/lib/gui/gmpreferences.c
@@ -692,7 +692,7 @@ gnome_prefs_string_option_menu_new (GtkWidget *table,
       history = cpt;
     }
     else
-      history = --cpt;
+      history = 0;
   }
 
   gtk_combo_box_set_active (GTK_COMBO_BOX (option_menu), history);



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