Author: abrander
Date: 2010-05-27 14:58:08 +0200 (Thu, 27 May 2010)
New Revision: 3382

Modified:
   trunk/src/rs-store.c
Log:
Ignore selection changed signal when removing all thumbnails from a RSStore.

Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c        2010-05-26 17:24:33 UTC (rev 3381)
+++ trunk/src/rs-store.c        2010-05-27 12:58:08 UTC (rev 3382)
@@ -1179,7 +1179,19 @@
 
        /* If both are NULL, remove everything */
        if ((filename == NULL) && (iter == NULL))
+       {
+               gint i;
+
+               /* If we remove everything we have to block selection-changed 
signal */
+               for(i=0;i<NUM_VIEWS;i++)
+                       g_signal_handlers_block_by_func(store->iconview[i], 
selection_changed, store);
+
                gtk_list_store_clear(store->store);
+
+               for(i=0;i<NUM_VIEWS;i++)
+                       g_signal_handlers_unblock_by_func(store->iconview[i], 
selection_changed, store);
+       }
+
        gdk_threads_leave();
 
 }


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to