Author: post
Date: 2010-03-15 21:53:09 +0100 (Mon, 15 Mar 2010)
New Revision: 3261
Modified:
trunk/src/rs-store.c
Log:
Don't add labels until they arrive from meta-data to avoid rare crash in gtk -
instead keep unloaded thumbnails at the end of the list.
Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c 2010-03-15 17:50:10 UTC (rev 3260)
+++ trunk/src/rs-store.c 2010-03-15 20:53:09 UTC (rev 3261)
@@ -662,7 +662,14 @@
gtk_tree_model_get(model, tia, TEXT_COLUMN, &a, -1);
gtk_tree_model_get(model, tib, TEXT_COLUMN, &b, -1);
- ret = g_utf8_collate(a,b);
+ if (!a[0] && !b[0])
+ ret = 0;
+ else if (!a[0])
+ ret = 1;
+ else if (!b[0])
+ ret = -1;
+ else
+ ret = g_utf8_collate(a,b);
g_free(a);
g_free(b);
return(ret);
@@ -1053,7 +1060,7 @@
METADATA_COLUMN, NULL,
PIXBUF_COLUMN, icon_default,
PIXBUF_CLEAN_COLUMN, icon_default,
- TEXT_COLUMN, g_strdup(name),
+ TEXT_COLUMN, g_strdup(""),
FULLNAME_COLUMN, fullname,
PRIORITY_COLUMN, priority,
EXPORTED_COLUMN, exported,
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit