diff options
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r-- | src/plugins/fs/search.c | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index 11be760d..5ffcec2f 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -229,28 +229,30 @@ addEntryToSearchTree (SearchList * searchContext, | |||
229 | GNUNET_ECRS_uri_get_keyword_count_from_ksk | 229 | GNUNET_ECRS_uri_get_keyword_count_from_ksk |
230 | (searchContext->uri)); | 230 | (searchContext->uri)); |
231 | #ifdef HAVE_GIO | 231 | #ifdef HAVE_GIO |
232 | if (0 == strcmp(rawMime, GNUNET_DIRECTORY_MIME)) | 232 | if (0 == strcmp (rawMime, GNUNET_DIRECTORY_MIME)) |
233 | { | 233 | { |
234 | mime = GNUNET_strdup(_("Directory")); | 234 | mime = GNUNET_strdup (_("Directory")); |
235 | icon = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), | 235 | icon = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), |
236 | "folder", 16, 0, (GError **)NULL); | 236 | "folder", 16, 0, (GError **) NULL); |
237 | } | 237 | } |
238 | else | 238 | else |
239 | { | 239 | { |
240 | mime = g_content_type_get_description (rawMime); | 240 | mime = g_content_type_get_description (rawMime); |
241 | gicon = g_content_type_get_icon (rawMime); | 241 | gicon = g_content_type_get_icon (rawMime); |
242 | if (G_IS_THEMED_ICON (gicon)) | 242 | if (G_IS_THEMED_ICON (gicon)) |
243 | { | 243 | { |
244 | iconNames = (const gchar **)g_themed_icon_get_names | 244 | iconNames = (const gchar **) g_themed_icon_get_names |
245 | (G_THEMED_ICON (gicon)); | 245 | (G_THEMED_ICON (gicon)); |
246 | do { | 246 | do |
247 | icon = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), | 247 | { |
248 | iconNames[i], 16, 0, | 248 | icon = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), |
249 | (GError **)NULL); | 249 | iconNames[i], 16, 0, |
250 | i++; | 250 | (GError **) NULL); |
251 | } while ( (icon == NULL) && iconNames[i] ); | 251 | i++; |
252 | } | 252 | } |
253 | } | 253 | while ((icon == NULL) && iconNames[i]); |
254 | } | ||
255 | } | ||
254 | #else | 256 | #else |
255 | mime = rawMime; | 257 | mime = rawMime; |
256 | #endif | 258 | #endif |
@@ -712,9 +714,9 @@ fs_search_started (struct GNUNET_FSUI_SearchList * fsui_list, | |||
712 | g_signal_connect_swapped (list->treeview, | 714 | g_signal_connect_swapped (list->treeview, |
713 | "button-press-event", | 715 | "button-press-event", |
714 | G_CALLBACK (search_click_handler), list); | 716 | G_CALLBACK (search_click_handler), list); |
715 | list->tree = gtk_tree_store_new (SEARCH_NUM, G_TYPE_STRING, /* name */ | 717 | list->tree = gtk_tree_store_new (SEARCH_NUM, G_TYPE_STRING, /* name */ |
716 | #ifdef HAVE_GIO | 718 | #ifdef HAVE_GIO |
717 | GDK_TYPE_PIXBUF, /* icon */ | 719 | GDK_TYPE_PIXBUF, /* icon */ |
718 | #endif | 720 | #endif |
719 | G_TYPE_UINT64, /* size */ | 721 | G_TYPE_UINT64, /* size */ |
720 | G_TYPE_STRING, /* human-readable size */ | 722 | G_TYPE_STRING, /* human-readable size */ |