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.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/fs/gnunet-fs-gtk_open-uri.c b/src/fs/gnunet-fs-gtk_open-uri.c
index c272083d..86e7778c 100644
--- a/src/fs/gnunet-fs-gtk_open-uri.c
+++ b/src/fs/gnunet-fs-gtk_open-uri.c
@@ -61,7 +61,7 @@ GNUNET_FS_GTK_handle_uri_string (const char *uris,
61 61
62/** 62/**
63 * User selected "execute" in the open-URI dialog. 63 * User selected "execute" in the open-URI dialog.
64 * 64 *
65 * @param button the execute button 65 * @param button the execute button
66 * @param user_data the `GtkBuilder` of the URI dialog 66 * @param user_data the `GtkBuilder` of the URI dialog
67 */ 67 */
@@ -92,20 +92,20 @@ GNUNET_GTK_open_url_dialog_execute_button_clicked_cb (GtkButton * button,
92 { 92 {
93 GNUNET_break (0); 93 GNUNET_break (0);
94 gtk_widget_destroy (dialog); 94 gtk_widget_destroy (dialog);
95 g_object_unref (G_OBJECT (builder)); 95 g_object_unref (G_OBJECT (builder));
96 return; 96 return;
97 } 97 }
98 GNUNET_break (GNUNET_OK == 98 GNUNET_break (GNUNET_OK ==
99 GNUNET_FS_GTK_handle_uri_string (uris, anonymity_level)); 99 GNUNET_FS_GTK_handle_uri_string (uris, anonymity_level));
100 g_free (uris); 100 g_free (uris);
101 gtk_widget_destroy (dialog); 101 gtk_widget_destroy (dialog);
102 g_object_unref (G_OBJECT (builder)); 102 g_object_unref (G_OBJECT (builder));
103} 103}
104 104
105 105
106/** 106/**
107 * User selected "cancel" in the open-URI dialog. 107 * User selected "cancel" in the open-URI dialog.
108 * 108 *
109 * @param button the cancel button 109 * @param button the cancel button
110 * @param user_data the 'GtkBuilder' of the URI dialog 110 * @param user_data the 'GtkBuilder' of the URI dialog
111 */ 111 */
@@ -117,7 +117,7 @@ GNUNET_GTK_open_url_dialog_cancel_button_clicked_cb (GtkButton * button,
117 GtkWidget *dialog; 117 GtkWidget *dialog;
118 118
119 dialog = GTK_WIDGET (gtk_builder_get_object 119 dialog = GTK_WIDGET (gtk_builder_get_object
120 (builder, 120 (builder,
121 "GNUNET_GTK_open_url_window")); 121 "GNUNET_GTK_open_url_window"));
122 gtk_widget_destroy (GTK_WIDGET (dialog)); 122 gtk_widget_destroy (GTK_WIDGET (dialog));
123 g_object_unref (G_OBJECT (builder)); 123 g_object_unref (G_OBJECT (builder));
@@ -126,7 +126,7 @@ GNUNET_GTK_open_url_dialog_cancel_button_clicked_cb (GtkButton * button,
126 126
127/** 127/**
128 * User closed the window of the open-URI dialog. 128 * User closed the window of the open-URI dialog.
129 * 129 *
130 * @param widget the window 130 * @param widget the window
131 * @param event the deletion event 131 * @param event the deletion event
132 * @param user_data the 'GtkBuilder' of the URI dialog 132 * @param user_data the 'GtkBuilder' of the URI dialog
@@ -147,7 +147,7 @@ GNUNET_GTK_open_url_window_delete_event_cb (GtkWidget * widget,
147/** 147/**
148 * User pushed a key in the open-URI dialog, check if we currently 148 * User pushed a key in the open-URI dialog, check if we currently
149 * have valid URI and if the key was 'RETURN', run the action. 149 * have valid URI and if the key was 'RETURN', run the action.
150 * 150 *
151 * @param widget the window 151 * @param widget the window
152 * @param event the deletion event 152 * @param event the deletion event
153 * @param user_data the 'GtkBuilder' of the URI dialog 153 * @param user_data the 'GtkBuilder' of the URI dialog
@@ -163,7 +163,7 @@ GNUNET_GTK_open_url_dialog_url_textview_key_press_event_cb (GtkWidget * widget,
163 if (event->keyval != GDK_KEY_Return) 163 if (event->keyval != GDK_KEY_Return)
164 return FALSE; 164 return FALSE;
165 execute = GTK_WIDGET (gtk_builder_get_object (builder, 165 execute = GTK_WIDGET (gtk_builder_get_object (builder,
166 "GNUNET_GTK_open_url_dialog_execute_button")); 166 "GNUNET_GTK_open_url_dialog_execute_button"));
167 if (gtk_widget_get_sensitive (execute)) 167 if (gtk_widget_get_sensitive (execute))
168 GNUNET_GTK_open_url_dialog_execute_button_clicked_cb (GTK_BUTTON (execute), 168 GNUNET_GTK_open_url_dialog_execute_button_clicked_cb (GTK_BUTTON (execute),
169 user_data); 169 user_data);
@@ -174,7 +174,7 @@ GNUNET_GTK_open_url_dialog_url_textview_key_press_event_cb (GtkWidget * widget,
174/** 174/**
175 * User edited the URI of the open-URI dialog, check if it is currently 175 * User edited the URI of the open-URI dialog, check if it is currently
176 * a valid URI and update the sensitivity of the 'execute' button accordingly. 176 * a valid URI and update the sensitivity of the 'execute' button accordingly.
177 * 177 *
178 * @param textbuffer the updated buffer 178 * @param textbuffer the updated buffer
179 * @param user_data the 'GtkBuilder' of the URI dialog 179 * @param user_data the 'GtkBuilder' of the URI dialog
180 */ 180 */
@@ -240,7 +240,7 @@ GNUNET_GTK_main_menu_file_download_uri_activate_cb (GtkWidget * dummy,
240 return; 240 return;
241 } 241 }
242 dialog = GTK_WIDGET (gtk_builder_get_object 242 dialog = GTK_WIDGET (gtk_builder_get_object
243 (builder, 243 (builder,
244 "GNUNET_GTK_open_url_window")); 244 "GNUNET_GTK_open_url_window"));
245 tb = GTK_TEXT_BUFFER (gtk_builder_get_object 245 tb = GTK_TEXT_BUFFER (gtk_builder_get_object
246 (builder, 246 (builder,
@@ -251,7 +251,7 @@ GNUNET_GTK_main_menu_file_download_uri_activate_cb (GtkWidget * dummy,
251 251
252 /* FIXME-FEATURE: query the clipboard, maybe there's valid URI in there? 252 /* FIXME-FEATURE: query the clipboard, maybe there's valid URI in there?
253 * If so, get it. */ 253 * If so, get it. */
254 combo = GTK_COMBO_BOX (gtk_builder_get_object 254 combo = GTK_COMBO_BOX (gtk_builder_get_object
255 (builder, 255 (builder,
256 "GNUNET_GTK_open_url_dialog_anonymity_combobox")); 256 "GNUNET_GTK_open_url_dialog_anonymity_combobox"));
257 gtk_combo_box_set_model (combo, GNUNET_FS_GTK_get_anonymity_level_list_store ()); 257 gtk_combo_box_set_model (combo, GNUNET_FS_GTK_get_anonymity_level_list_store ());