aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/search.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-06-07 07:41:31 +0000
committerChristian Grothoff <christian@grothoff.org>2008-06-07 07:41:31 +0000
commit1dcd6d941005c55cc4735fb493c3287776d1a2ab (patch)
treeebb325c4cda7f1aa09f884fcc01c80f8d7d658ad /src/plugins/fs/search.c
parentf59617c7964f5738cd45087a1b3fa165082831b5 (diff)
downloadgnunet-gtk-1dcd6d941005c55cc4735fb493c3287776d1a2ab.tar.gz
gnunet-gtk-1dcd6d941005c55cc4735fb493c3287776d1a2ab.zip
fix
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r--src/plugins/fs/search.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index 0d000a60..df56d8ed 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -258,9 +258,6 @@ addEntryToSearchTree (SearchList * searchContext,
258#endif 258#endif
259 259
260 gtk_tree_store_set (searchContext->tree, iter, 260 gtk_tree_store_set (searchContext->tree, iter,
261#ifdef HAVE_GIO
262 SEARCH_ICON, icon,
263#endif
264 SEARCH_NAME, name, SEARCH_SIZE, size, SEARCH_HSIZE, 261 SEARCH_NAME, name, SEARCH_SIZE, size, SEARCH_HSIZE,
265 size_h, SEARCH_MIME, mime, 262 size_h, SEARCH_MIME, mime,
266 SEARCH_RAW_MIME, rawMime, SEARCH_DESC, desc, 263 SEARCH_RAW_MIME, rawMime, SEARCH_DESC, desc,
@@ -272,7 +269,11 @@ addEntryToSearchTree (SearchList * searchContext,
272 searchContext, SEARCH_INTERNAL_PARENT, downloadParent, 269 searchContext, SEARCH_INTERNAL_PARENT, downloadParent,
273 SEARCH_STATUS, getStatusName (state), 270 SEARCH_STATUS, getStatusName (state),
274 SEARCH_APPLICABILITY_RANK, 1, SEARCH_RANK_SORT, 271 SEARCH_APPLICABILITY_RANK, 1, SEARCH_RANK_SORT,
275 (long long) 1, SEARCH_RANK_PIXBUF, rankbuf, -1); 272 (long long) 1, SEARCH_RANK_PIXBUF, rankbuf,
273#ifdef HAVE_GIO
274 SEARCH_ICON, icon,
275#endif
276 -1);
276 g_object_unref (rankbuf); 277 g_object_unref (rankbuf);
277 if (pixbuf != NULL) 278 if (pixbuf != NULL)
278 g_object_unref (pixbuf); 279 g_object_unref (pixbuf);
@@ -718,9 +719,6 @@ fs_search_started (struct GNUNET_FSUI_SearchList * fsui_list,
718 G_CALLBACK (search_click_handler), list); 719 G_CALLBACK (search_click_handler), list);
719 list->tree = gtk_tree_store_new (SEARCH_NUM, 720 list->tree = gtk_tree_store_new (SEARCH_NUM,
720 G_TYPE_STRING, /* name */ 721 G_TYPE_STRING, /* name */
721#ifdef HAVE_GIO
722 GDK_TYPE_PIXBUF, /* icon */
723#endif
724 G_TYPE_UINT64, /* size */ 722 G_TYPE_UINT64, /* size */
725 G_TYPE_STRING, /* human-readable size */ 723 G_TYPE_STRING, /* human-readable size */
726 G_TYPE_STRING, /* mime-type */ 724 G_TYPE_STRING, /* mime-type */
@@ -739,6 +737,9 @@ fs_search_started (struct GNUNET_FSUI_SearchList * fsui_list,
739 G_TYPE_UINT, /* applicability rank */ 737 G_TYPE_UINT, /* applicability rank */
740 GDK_TYPE_PIXBUF, /* ranking visualization */ 738 GDK_TYPE_PIXBUF, /* ranking visualization */
741 G_TYPE_INT64 /* numeric sort */ 739 G_TYPE_INT64 /* numeric sort */
740#ifdef HAVE_GIO
741 , GDK_TYPE_PIXBUF /* icon */
742#endif
742 ); 743 );
743 744
744 gtk_tree_view_set_model (list->treeview, GTK_TREE_MODEL (list->tree)); 745 gtk_tree_view_set_model (list->treeview, GTK_TREE_MODEL (list->tree));