if there are no themes, show the window instead of leaving it hidden forever
authorDana Jansens <danakj@orodu.net>
Sat, 4 Aug 2007 16:29:36 +0000 (12:29 -0400)
committerDana Jansens <danakj@orodu.net>
Sat, 4 Aug 2007 16:29:36 +0000 (12:29 -0400)
src/preview_update.c

index 10791cf..9628326 100644 (file)
@@ -91,8 +91,11 @@ static gboolean update_theme_preview_iterate(gpointer data)
     gchar *name;
 
     if (restart_theme_preview_update) {
-        if (!gtk_tree_model_get_iter_first(GTK_TREE_MODEL(ls), &iter))
+        if (!gtk_tree_model_get_iter_first(GTK_TREE_MODEL(ls), &iter)) {
+            /* nothing to show */
+            obconf_show_main();
             return FALSE;
+        }
         restart_theme_preview_update = FALSE;
     } else {
         if (!gtk_tree_model_iter_next(GTK_TREE_MODEL(ls), &iter)) {