Revision: 1385
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1385&view=rev
Author:   nadvornik
Date:     2009-02-07 21:03:11 +0000 (Sat, 07 Feb 2009)

Log Message:
-----------
force at least one idle call before writting metadata
(without this the exit_program_write_metadata_cb could be called
before the exit_program function finished)

Modified Paths:
--------------
    trunk/src/utilops.c

Modified: trunk/src/utilops.c
===================================================================
--- trunk/src/utilops.c 2009-02-07 19:01:21 UTC (rev 1384)
+++ trunk/src/utilops.c 2009-02-07 21:03:11 UTC (rev 1385)
@@ -590,8 +590,16 @@
 {
        UtilityData *ud = data;
 
-       /* this is removed when ud is destroyed */
-       if (ud->perform_idle_id == -1) ud->perform_idle_id = 
g_idle_add(file_util_perform_ci_internal, ud);
+       if (ud->perform_idle_id == -1) 
+               {
+               /* this function was called directly
+                  just setup idle callback and wait until we are called again
+               */
+               
+               /* this is removed when ud is destroyed */
+               ud->perform_idle_id = g_idle_add(file_util_perform_ci_internal, 
ud);
+               return TRUE;
+               }
 
        g_assert(ud->flist);
        


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to