sound-juicer r2434 - in trunk: . src



Author: rburton
Date: Tue Feb 10 21:48:09 2009
New Revision: 2434
URL: http://svn.gnome.org/viewvc/sound-juicer?rev=2434&view=rev

Log:
2009-02-10  Ross Burton  <ross linux intel com>

	* src/sj-prefs.c:
	Handle the file or path pattern combo containing a custom
	combo (#339089).


Modified:
   trunk/ChangeLog
   trunk/src/sj-prefs.c

Modified: trunk/src/sj-prefs.c
==============================================================================
--- trunk/src/sj-prefs.c	(original)
+++ trunk/src/sj-prefs.c	Tue Feb 10 21:48:09 2009
@@ -134,6 +134,9 @@
   gint active;
   const char* pattern;
   active = gtk_combo_box_get_active (combo);
+  if (active == -1)
+    return;
+
   pattern = path_patterns[active].pattern;
   if (pattern) {
     gconf_client_set_string (gconf_client, GCONF_PATH_PATTERN, pattern, NULL);
@@ -145,6 +148,9 @@
   gint active;
   const char* pattern;
   active = gtk_combo_box_get_active (combo);
+  if (active == -1)
+    return;
+
   pattern = file_patterns[active].pattern;
   if (pattern) {
     gconf_client_set_string (gconf_client, GCONF_FILE_PATTERN, pattern, NULL);



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