[Rawstudio-commit] r2060 - trunk/src
Anders Kvist
anders at kvistmail.dk
Sun Oct 12 00:40:34 CEST 2008
Author: akv
Date: 2008-10-12 00:40:33 +0200 (Sun, 12 Oct 2008)
New Revision: 2060
Modified:
trunk/src/rs-external-editor.c
Log:
Made an ugly fix to help exporting to GIMP 2.6
Modified: trunk/src/rs-external-editor.c
===================================================================
--- trunk/src/rs-external-editor.c 2008-10-11 14:57:30 UTC (rev 2059)
+++ trunk/src/rs-external-editor.c 2008-10-11 22:40:33 UTC (rev 2060)
@@ -64,6 +64,11 @@
system("gimp &");
gint i = 0;
+ // FIXME: We need to sleep a bit with GIMP 2.6 as it doesn't wait until it has opened the photo before it replies...
+ if (rs_has_gimp(2,6,0)) {
+ sleep(5);
+ }
+
while (!reply && i < EXPORT_TO_GIMP_TIMEOUT_SECONDS ) {
sleep(1);
reply = dbus_connection_send_with_reply_and_block (bus, message, -1, NULL);
@@ -73,6 +78,11 @@
dbus_message_unref (message);
+ // FIXME: We still need to sleep a bit because of GIMP 2.6...
+ if (rs_has_gimp(2,6,0)) {
+ sleep(2);
+ }
+
g_unlink(filename->str);
g_string_free(filename, TRUE);
More information about the Rawstudio-commit
mailing list