]> hydra-www.ietfng.org Git - gtetrinet/commitdiff
don't select a theme if we can't find it in the current theme list. (Dani)
authorJordi Albornoz <jordi@src.gnome.org>
Mon, 6 Jan 2003 17:42:59 +0000 (17:42 +0000)
committerJordi Albornoz <jordi@src.gnome.org>
Mon, 6 Jan 2003 17:42:59 +0000 (17:42 +0000)
ChangeLog
src/dialogs.c

index 5889cb06b9c84c76932f6ab4d098daa830989f61..17b440c8765380abd9b956546b11e7cfc92dc425 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-06  Dani Carbonell  <bocata@panete.net>
+
+       * dialogs.c (prefdialog_themelist): don't select a theme if we can't
+       find it in the current theme list.
+
 2003-01-06  Jordi Mallach  <jordi@sindominio.net>
 
        * NEWS: updated for 0.5.1.
index b5acfe8e4551f0f346b690d15c5e671a8614e6ef..a9ea85d33cc98dffeac3332269928c169d7a38e4 100644 (file)
@@ -694,8 +694,11 @@ void prefdialog_themelist ()
             theme_select = i;
         }
     }
-    gtk_tree_selection_select_iter (theme_selection, &iter_selected);
-    prefdialog_themelistselect (theme_select);
+    if (theme_select != 0) 
+    {
+      gtk_tree_selection_select_iter (theme_selection, &iter_selected);
+      prefdialog_themelistselect (theme_select);
+    }
 }
 
 void prefdialog_apply (GnomePropertyBox *dialog, gint pagenum)