[Goodies-commits] r4079 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Fri Mar 21 16:12:48 CET 2008


Author: stephan
Date: 2008-03-21 15:12:48 +0000 (Fri, 21 Mar 2008)
New Revision: 4079

Modified:
   ristretto/trunk/src/main_window.c
Log:
Improve performance when opening a folder from the menu



Modified: ristretto/trunk/src/main_window.c
===================================================================
--- ristretto/trunk/src/main_window.c	2008-03-21 14:57:31 UTC (rev 4078)
+++ ristretto/trunk/src/main_window.c	2008-03-21 15:12:48 UTC (rev 4079)
@@ -1442,8 +1442,10 @@
     if(response == GTK_RESPONSE_OK)
     {
         const gchar *dir_name = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
+        rstto_navigator_set_busy(window->priv->navigator, TRUE);
         rstto_navigator_open_folder(window->priv->navigator, dir_name, TRUE, NULL);
         rstto_navigator_jump_first(window->priv->navigator);
+        rstto_navigator_set_busy(window->priv->navigator, FALSE);
     }
     gtk_widget_destroy(dialog);
 }
@@ -1460,8 +1462,10 @@
         {
             if(g_file_test(path, G_FILE_TEST_IS_DIR))
             {
+                rstto_navigator_set_busy(window->priv->navigator, TRUE);
                 rstto_navigator_open_folder(window->priv->navigator, path, TRUE, NULL);
                 rstto_navigator_jump_first(window->priv->navigator);
+                rstto_navigator_set_busy(window->priv->navigator, FALSE);
             }
             else
             {




More information about the Goodies-commits mailing list