aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk.c')
-rw-r--r--src/fs/gnunet-fs-gtk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c
index dd4c9512..2e0f2999 100644
--- a/src/fs/gnunet-fs-gtk.c
+++ b/src/fs/gnunet-fs-gtk.c
@@ -240,15 +240,14 @@ GNUNET_GTK_get_tree_string (GtkTreeView *treeview, GtkTreePath *treepath,
240} 240}
241 241
242gboolean 242gboolean
243get_selected_anonymity_level (GtkBuilder *builder, guint *p_level) 243GNUNET_GTK_get_selected_anonymity_level (GtkBuilder *builder, gchar *combo_name, guint *p_level)
244{ 244{
245 GtkComboBox *combo; 245 GtkComboBox *combo;
246 GtkTreeIter iter; 246 GtkTreeIter iter;
247 GtkTreeModel *model; 247 GtkTreeModel *model;
248 guint level; 248 guint level;
249 249
250 combo = GTK_COMBO_BOX(gtk_builder_get_object (builder, 250 combo = GTK_COMBO_BOX(gtk_builder_get_object (builder, combo_name));
251 "main_window_search_anonymity_combobox"));
252 if (!combo) 251 if (!combo)
253 return FALSE; 252 return FALSE;
254 253
@@ -447,7 +446,8 @@ main_window_search_button_clicked_cb (GtkButton *button, gpointer user_data)
447 toggle_button = GTK_TOGGLE_BUTTON (gtk_builder_get_object (builder, 446 toggle_button = GTK_TOGGLE_BUTTON (gtk_builder_get_object (builder,
448 "main_window_search_namespace_dropdown_button")); 447 "main_window_search_namespace_dropdown_button"));
449 448
450 if (!get_selected_anonymity_level (builder, &anonymity_level)) 449 if (!GNUNET_GTK_get_selected_anonymity_level (builder,
450 "main_window_search_anonymity_combobox", &anonymity_level))
451 return; 451 return;
452 452
453 mime_combo = GTK_COMBO_BOX (GNUNET_FS_GTK_get_main_window_object 453 mime_combo = GTK_COMBO_BOX (GNUNET_FS_GTK_get_main_window_object