Author: stephan
Date: 2007-01-09 23:19:44 +0000 (Tue, 09 Jan 2007)
New Revision: 24339

Modified:
   squeeze/trunk/src/archive_store.c
Log:
fixed segfault when user hovers over treeview while archive is being refreshed 
with less properties, is a bit of a hack but it works for now

Modified: squeeze/trunk/src/archive_store.c
===================================================================
--- squeeze/trunk/src/archive_store.c   2007-01-09 22:47:51 UTC (rev 24338)
+++ squeeze/trunk/src/archive_store.c   2007-01-09 23:19:44 UTC (rev 24339)
@@ -396,6 +396,7 @@
 
        SQArchiveStore *store = SQ_ARCHIVE_STORE(tree_model);
        LSQArchive *archive = store->archive;
+       g_return_val_if_fail(index < lsq_archive_n_property(archive), 
G_TYPE_STRING);
 
        if(!archive)
                return G_TYPE_INVALID;
@@ -520,7 +521,13 @@
                }
                else
                {
-                       lsq_archive_iter_get_prop_value(archive, entry, column, 
value);
+                       if(column < (gint)lsq_archive_n_property(archive))
+                               lsq_archive_iter_get_prop_value(archive, entry, 
column, value);
+                       else
+                       {
+                               g_value_init(value, G_TYPE_STRING);
+                               g_value_set_string(value, "..");
+                       }
                }
        }
        else

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to