aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_open-uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_open-uri.c')
-rw-r--r--src/fs/gnunet-fs-gtk_open-uri.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/fs/gnunet-fs-gtk_open-uri.c b/src/fs/gnunet-fs-gtk_open-uri.c
index 6962c2a5..1b146c9f 100644
--- a/src/fs/gnunet-fs-gtk_open-uri.c
+++ b/src/fs/gnunet-fs-gtk_open-uri.c
@@ -42,7 +42,7 @@ void
42GNUNET_GTK_open_url_dialog_execute_button_clicked_cb (GtkButton * button, 42GNUNET_GTK_open_url_dialog_execute_button_clicked_cb (GtkButton * button,
43 gpointer user_data) 43 gpointer user_data)
44{ 44{
45 GtkBuilder *builder; 45 GtkBuilder *builder = GTK_BUILDER (user_data);
46 GtkWidget *dialog; 46 GtkWidget *dialog;
47 GtkTextBuffer *tb; 47 GtkTextBuffer *tb;
48 GtkTextIter ti_start, ti_end; 48 GtkTextIter ti_start, ti_end;
@@ -51,7 +51,6 @@ GNUNET_GTK_open_url_dialog_execute_button_clicked_cb (GtkButton * button,
51 char *uris; 51 char *uris;
52 struct GNUNET_FS_Uri *uri; 52 struct GNUNET_FS_Uri *uri;
53 53
54 builder = GTK_BUILDER (user_data);
55 dialog = 54 dialog =
56 GTK_WIDGET (gtk_builder_get_object 55 GTK_WIDGET (gtk_builder_get_object
57 (builder, "GNUNET_GTK_open_url_window")); 56 (builder, "GNUNET_GTK_open_url_window"));
@@ -149,7 +148,7 @@ GNUNET_GTK_open_url_window_delete_event_cb (GtkWidget * widget,
149 GtkBuilder *builder = GTK_BUILDER (user_data); 148 GtkBuilder *builder = GTK_BUILDER (user_data);
150 149
151 g_object_unref (G_OBJECT (builder)); 150 g_object_unref (G_OBJECT (builder));
152 return TRUE; 151 return FALSE;
153} 152}
154 153
155 154
@@ -239,6 +238,7 @@ GNUNET_GTK_main_menu_file_download_uri_activate_cb (GtkWidget * dummy,
239 GtkTextIter ti_start; 238 GtkTextIter ti_start;
240 GtkTextIter ti_end; 239 GtkTextIter ti_end;
241 GtkWidget *toplevel; 240 GtkWidget *toplevel;
241 GtkComboBox *combo;
242 242
243 builder = 243 builder =
244 GNUNET_GTK_get_new_builder ("gnunet_fs_gtk_open_url_dialog.glade", NULL); 244 GNUNET_GTK_get_new_builder ("gnunet_fs_gtk_open_url_dialog.glade", NULL);
@@ -259,7 +259,10 @@ GNUNET_GTK_main_menu_file_download_uri_activate_cb (GtkWidget * dummy,
259 259
260 /* FIXME-FEATURE: query the clipboard, maybe there's valid URI in there? 260 /* FIXME-FEATURE: query the clipboard, maybe there's valid URI in there?
261 * If so, get it. */ 261 * If so, get it. */
262 262 combo = GTK_COMBO_BOX (gtk_builder_get_object
263 (builder,
264 "GNUNET_GTK_open_url_dialog_anonymity_combobox"));
265 gtk_combo_box_set_model (combo, GNUNET_FS_GTK_get_anonymity_level_list_store ());
263 toplevel = gtk_widget_get_toplevel (dummy); 266 toplevel = gtk_widget_get_toplevel (dummy);
264 if (GTK_IS_WINDOW (toplevel)) 267 if (GTK_IS_WINDOW (toplevel))
265 gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (toplevel)); 268 gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (toplevel));