Author: post
Date: 2010-12-29 19:07:59 +0100 (Wed, 29 Dec 2010)
New Revision: 3714
Modified:
trunk/src/gtk-interface.c
Log:
Pause thumbnail generation, when opening an image - much faster image load.
Modified: trunk/src/gtk-interface.c
===================================================================
--- trunk/src/gtk-interface.c 2010-12-29 17:40:54 UTC (rev 3713)
+++ trunk/src/gtk-interface.c 2010-12-29 18:07:59 UTC (rev 3714)
@@ -181,6 +181,7 @@
}
else
{
+ rs_io_idle_unpause();
gui_set_busy(FALSE);
return FALSE;
}
@@ -204,6 +205,7 @@
if (name!=NULL)
{
GList *selected = NULL;
+ rs_io_idle_pause();
g_signal_handlers_block_by_func(instance, icon_activated, rs);
gui_set_busy(TRUE);
msgid = gui_status_push(_("Opening photo ..."));
@@ -223,6 +225,7 @@
{
gui_status_pop(msgid);
gui_set_busy(FALSE);
+ rs_io_idle_unpause();
return;
}
@@ -240,6 +243,7 @@
}
GTK_CATCHUP();
gui_set_busy(FALSE);
+ rs_io_idle_unpause();
}
static void
@@ -1262,6 +1266,7 @@
gchar *temppath = g_strdup(filename);
gchar *lwd;
+ rs_io_idle_pause();
if (g_path_is_absolute(temppath))
abspath = g_strdup(temppath);
else
@@ -1291,6 +1296,7 @@
else
rs_store_load_directory(rs->store, NULL);
g_free(abspath);
+ rs_io_idle_unpause();
}
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit