Changeset 13962
- Timestamp:
- Feb 4, 2013, 7:26:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7x/gtk/filter.c
r13953 r13962 120 120 121 121 static gboolean 122 category_filter_model_update ( GtkTreeStore *store)122 category_filter_model_update (gpointer gstore) 123 123 { 124 124 int i, n; … … 132 132 GtkTreeIter top; 133 133 GtkTreeIter iter; 134 GtkTreeModel * model = GTK_TREE_MODEL (store); 134 GtkTreeStore * store = GTK_TREE_STORE (gstore); 135 GtkTreeModel * model = GTK_TREE_MODEL (gstore); 135 136 GPtrArray * hosts = g_ptr_array_new (); 136 137 GStringChunk * strings = g_string_chunk_new (4096); … … 296 297 g_hash_table_unref (hosts_hash); 297 298 g_string_chunk_free (strings); 298 return FALSE;299 return G_SOURCE_REMOVE; 299 300 } 300 301 … … 377 378 if (!pending) 378 379 { 379 GSourceFunc func = (GSourceFunc)category_filter_model_update;380 GSourceFunc func = category_filter_model_update; 380 381 g_object_set_qdata (o, DIRTY_KEY, GINT_TO_POINTER (1)); 381 382 gdk_threads_add_idle (func, category_model); … … 652 653 } 653 654 654 static void655 activity_filter_model_update ( GtkListStore *store)655 static gboolean 656 activity_filter_model_update (gpointer gstore) 656 657 { 657 658 GtkTreeIter iter; 658 GtkTreeModel * model = GTK_TREE_MODEL (store); 659 GtkListStore * store = GTK_LIST_STORE (gstore); 660 GtkTreeModel * model = GTK_TREE_MODEL (gstore); 659 661 GObject * o = G_OBJECT (store); 660 662 GtkTreeModel * tmodel = GTK_TREE_MODEL (g_object_get_qdata (o, TORRENT_MODEL_KEY)); … … 681 683 682 684 } while (gtk_tree_model_iter_next (model, &iter)); 685 686 return G_SOURCE_REMOVE; 683 687 } 684 688 … … 752 756 if (!pending) 753 757 { 754 GSourceFunc func = (GSourceFunc)activity_filter_model_update;758 GSourceFunc func = activity_filter_model_update; 755 759 g_object_set_qdata (o, DIRTY_KEY, GINT_TO_POINTER (1)); 756 760 gdk_threads_add_idle (func, activity_model);
Note: See TracChangeset
for help on using the changeset viewer.