Author: stephan
Date: 2006-12-01 14:44:47 +0000 (Fri, 01 Dec 2006)
New Revision: 24027
Modified:
xarchiver/branches/xarchiver-psybsd/src/archive_store.c
Log:
Changed sort-thread
Modified: xarchiver/branches/xarchiver-psybsd/src/archive_store.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/archive_store.c 2006-12-01
14:39:21 UTC (rev 24026)
+++ xarchiver/branches/xarchiver-psybsd/src/archive_store.c 2006-12-01
14:44:47 UTC (rev 24027)
@@ -1712,13 +1712,17 @@
static gpointer
sq_archive_store_sort_thread_func(SQArchiveStore *store)
{
+ gdk_threads_enter();
+ if(store->treeview)
+ gtk_tree_view_set_model(store->treeview, NULL);
+ gdk_threads_leave();
+
sq_archive_store_sort(store);
gdk_threads_enter();
-
- sq_archive_store_refresh(store);
+ if(store->treeview)
+ gtk_tree_view_set_model(store->treeview, (GtkTreeModel *)store);
g_signal_emit(store,
sq_archive_store_signals[SQ_ARCHIVE_STORE_SIGNAL_PWD_CHANGED], 0,NULL);
-
gdk_threads_leave();
return NULL;
}
@@ -1726,17 +1730,17 @@
static gpointer
sq_archive_store_sort_order_thread_func(SQArchiveStore *store)
{
+ gdk_threads_enter();
+ if(store->treeview)
+ gtk_tree_view_set_model(store->treeview, NULL);
+ gdk_threads_leave();
+
sq_archive_store_sort(store);
gdk_threads_enter();
- if(store->treeview)
- gtk_tree_view_set_model(store->treeview, NULL);
sq_archive_store_refresh(store);
if(store->treeview)
gtk_tree_view_set_model(store->treeview, (GtkTreeModel *)store);
-
- /* TODO: should do stuff i think */
-
gdk_threads_leave();
return NULL;
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits