aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/gnunet-fs-gtk_advertise-pseudonym.c7
-rw-r--r--src/fs/gnunet-fs-gtk_download-save-as.c5
-rw-r--r--src/fs/gnunet-fs-gtk_open-uri.c2
-rw-r--r--src/fs/gnunet-fs-gtk_publish-dialog.c6
-rw-r--r--src/fs/gnunet-fs-gtk_publish-edit-dialog.c6
5 files changed, 14 insertions, 12 deletions
diff --git a/src/fs/gnunet-fs-gtk_advertise-pseudonym.c b/src/fs/gnunet-fs-gtk_advertise-pseudonym.c
index 2af42833..1aad22f3 100644
--- a/src/fs/gnunet-fs-gtk_advertise-pseudonym.c
+++ b/src/fs/gnunet-fs-gtk_advertise-pseudonym.c
@@ -199,7 +199,7 @@ GNUNET_GTK_select_pseudonym_dialog_response_cb (GtkDialog * dialog,
199 * @param widget the dialog 199 * @param widget the dialog
200 * @param event the destroying event 200 * @param event the destroying event
201 * @param user_data the builder of the dialog 201 * @param user_data the builder of the dialog
202 * @return TRUE (allow destruction) 202 * @return FALSE (allow destruction)
203 */ 203 */
204gboolean 204gboolean
205GNUNET_GTK_select_pseudonym_dialog_delete_event_cb (GtkWidget *widget, 205GNUNET_GTK_select_pseudonym_dialog_delete_event_cb (GtkWidget *widget,
@@ -210,7 +210,6 @@ GNUNET_GTK_select_pseudonym_dialog_delete_event_cb (GtkWidget *widget,
210 GtkTreeModel *tm; 210 GtkTreeModel *tm;
211 GtkTreeIter iter; 211 GtkTreeIter iter;
212 212
213 fprintf (stderr, "DELETE!\n");
214 tm = GTK_TREE_MODEL (gtk_builder_get_object (builder, 213 tm = GTK_TREE_MODEL (gtk_builder_get_object (builder,
215 "GNUNET_GTK_select_pseudonym_liststore")); 214 "GNUNET_GTK_select_pseudonym_liststore"));
216 if (gtk_tree_model_get_iter_first (tm, &iter)) 215 if (gtk_tree_model_get_iter_first (tm, &iter))
@@ -225,7 +224,7 @@ GNUNET_GTK_select_pseudonym_dialog_delete_event_cb (GtkWidget *widget,
225 while (gtk_tree_model_iter_next (tm, &iter)); 224 while (gtk_tree_model_iter_next (tm, &iter));
226 } 225 }
227 g_object_unref (G_OBJECT (builder)); 226 g_object_unref (G_OBJECT (builder));
228 return TRUE; 227 return FALSE;
229} 228}
230 229
231 230
@@ -314,7 +313,7 @@ GNUNET_GTK_main_menu_file_advertise_pseudonym_activate_cb (GtkWidget * dummy,
314 &add_to_list, 313 &add_to_list,
315 ls); 314 ls);
316 315
317 /* FIXME-UNCLEAN: this signal can be connected by (modern) Glade automatically */ 316 /* FIXME-GTK3: this signal can be connected by (modern) Glade automatically */
318 tv = GTK_TREE_VIEW (gtk_builder_get_object 317 tv = GTK_TREE_VIEW (gtk_builder_get_object
319 (builder, "GNUNET_GTK_select_pseudonym_tree_view")); 318 (builder, "GNUNET_GTK_select_pseudonym_tree_view"));
320 sel = gtk_tree_view_get_selection (tv); 319 sel = gtk_tree_view_get_selection (tv);
diff --git a/src/fs/gnunet-fs-gtk_download-save-as.c b/src/fs/gnunet-fs-gtk_download-save-as.c
index 170f1bc9..1cd45e8d 100644
--- a/src/fs/gnunet-fs-gtk_download-save-as.c
+++ b/src/fs/gnunet-fs-gtk_download-save-as.c
@@ -84,7 +84,7 @@ save_as_dialog_free_download_context (struct DownloadContext *dc)
84 * @param widget the dialog object 84 * @param widget the dialog object
85 * @param event the deletion event 85 * @param event the deletion event
86 * @param user_data the 'structDownloadAsDialogContext' of the dialog 86 * @param user_data the 'structDownloadAsDialogContext' of the dialog
87 * @return always FALSE 87 * @return always FALSE (destroy the window)
88 */ 88 */
89gboolean 89gboolean
90GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget * widget, GdkEvent * event, 90GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget * widget, GdkEvent * event,
@@ -106,6 +106,7 @@ GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget * widget, GdkEvent * event,
106 GNUNET_free (dlc); 106 GNUNET_free (dlc);
107 return FALSE; 107 return FALSE;
108 } 108 }
109 /* FIXME-UGLY: this code should be in the 'save_as_dialog_response_cb' instead */
109 GNUNET_free_non_null (dc->filename); 110 GNUNET_free_non_null (dc->filename);
110 dc->filename = 111 dc->filename =
111 GNUNET_GTK_filechooser_get_filename_utf8 (GTK_FILE_CHOOSER (dlc->dialog)); 112 GNUNET_GTK_filechooser_get_filename_utf8 (GTK_FILE_CHOOSER (dlc->dialog));
@@ -143,6 +144,8 @@ GNUNET_GTK_save_as_dialog_response_cb (GtkDialog * dialog,
143 dlc->response = response_id; 144 dlc->response = response_id;
144 /* dialogs don't get delete-event the way normal windows do, 145 /* dialogs don't get delete-event the way normal windows do,
145 call the handler manually */ 146 call the handler manually */
147 /* FIXME-UGLY: this is a bit ugly; instead, move the code
148 to close the dialog nicely into here! */
146 GNUNET_GTK_save_as_dialog_delete_event_cb (GTK_WIDGET (dialog), NULL, 149 GNUNET_GTK_save_as_dialog_delete_event_cb (GTK_WIDGET (dialog), NULL,
147 user_data); 150 user_data);
148 gtk_widget_destroy (GTK_WIDGET (dialog)); 151 gtk_widget_destroy (GTK_WIDGET (dialog));
diff --git a/src/fs/gnunet-fs-gtk_open-uri.c b/src/fs/gnunet-fs-gtk_open-uri.c
index 1b146c9f..90235c76 100644
--- a/src/fs/gnunet-fs-gtk_open-uri.c
+++ b/src/fs/gnunet-fs-gtk_open-uri.c
@@ -138,7 +138,7 @@ GNUNET_GTK_open_url_dialog_cancel_button_clicked_cb (GtkButton * button,
138 * @param widget the window 138 * @param widget the window
139 * @param event the deletion event 139 * @param event the deletion event
140 * @param user_data the 'GtkBuilder' of the URI dialog 140 * @param user_data the 'GtkBuilder' of the URI dialog
141 * @return TRUE (allow destruction) 141 * @return FALSE (allow destruction)
142 */ 142 */
143gboolean 143gboolean
144GNUNET_GTK_open_url_window_delete_event_cb (GtkWidget * widget, 144GNUNET_GTK_open_url_window_delete_event_cb (GtkWidget * widget,
diff --git a/src/fs/gnunet-fs-gtk_publish-dialog.c b/src/fs/gnunet-fs-gtk_publish-dialog.c
index c57ab9d8..4f33fc62 100644
--- a/src/fs/gnunet-fs-gtk_publish-dialog.c
+++ b/src/fs/gnunet-fs-gtk_publish-dialog.c
@@ -904,7 +904,7 @@ GNUNET_FS_GTK_progress_dialog_cancel_button_clicked_cb (GtkButton *button,
904 * @param widget the widget emitting the event 904 * @param widget the widget emitting the event
905 * @param event the event 905 * @param event the event
906 * @param user_data progress dialog context of our window 906 * @param user_data progress dialog context of our window
907 * @return FALSE to refuse to close 907 * @return TRUE to refuse to close
908 */ 908 */
909gboolean 909gboolean
910GNUNET_FS_GTK_progress_dialog_delete_event_cb (GtkWidget *widget, 910GNUNET_FS_GTK_progress_dialog_delete_event_cb (GtkWidget *widget,
@@ -912,7 +912,7 @@ GNUNET_FS_GTK_progress_dialog_delete_event_cb (GtkWidget *widget,
912 void *cls) 912 void *cls)
913{ 913{
914 /* Don't allow GTK to kill the window, until the scan is finished */ 914 /* Don't allow GTK to kill the window, until the scan is finished */
915 return FALSE; 915 return TRUE;
916} 916}
917 917
918 918
@@ -1982,7 +1982,7 @@ GNUNET_GTK_main_menu_file_publish_activate_cb (GtkWidget * dummy, gpointer user_
1982 ctx->pseudonym_selection = gtk_tree_view_get_selection (pseudonym_treeview); 1982 ctx->pseudonym_selection = gtk_tree_view_get_selection (pseudonym_treeview);
1983 ctx->pseudonym_treemodel = gtk_tree_view_get_model (pseudonym_treeview); 1983 ctx->pseudonym_treemodel = gtk_tree_view_get_model (pseudonym_treeview);
1984 1984
1985 /* connect signals; FIXME-UNCLEAN: these could be connected with (modern) Glade */ 1985 /* connect signals; FIXME-GTK3: these could be connected with (modern) Glade */
1986 g_signal_connect (G_OBJECT (ctx->file_info_selection), "changed", 1986 g_signal_connect (G_OBJECT (ctx->file_info_selection), "changed",
1987 G_CALLBACK (selection_changed_cb), ctx); 1987 G_CALLBACK (selection_changed_cb), ctx);
1988 g_signal_connect (G_OBJECT (ctx->pseudonym_selection), "changed", 1988 g_signal_connect (G_OBJECT (ctx->pseudonym_selection), "changed",
diff --git a/src/fs/gnunet-fs-gtk_publish-edit-dialog.c b/src/fs/gnunet-fs-gtk_publish-edit-dialog.c
index 0951b316..6d9a641c 100644
--- a/src/fs/gnunet-fs-gtk_publish-edit-dialog.c
+++ b/src/fs/gnunet-fs-gtk_publish-edit-dialog.c
@@ -253,7 +253,7 @@ GNUNET_GTK_edit_publication_type_combo_changed_cb (GtkComboBox * widget,
253 * @param ts the tree selection object 253 * @param ts the tree selection object
254 * @param user_data the 'struct EditPublicationDialogContext' 254 * @param user_data the 'struct EditPublicationDialogContext'
255 */ 255 */
256/* FIXME-UNCLEAN: connect this signal via glade (modern versions of Glade support this) */ 256/* FIXME-GTK3: connect this signal via glade (modern versions of Glade support this) */
257static void 257static void
258metadata_selection_changed_cb (GtkTreeSelection *ts, 258metadata_selection_changed_cb (GtkTreeSelection *ts,
259 gpointer user_data) 259 gpointer user_data)
@@ -502,7 +502,7 @@ GNUNET_GTK_edit_publication_metadata_preview_file_chooser_button_file_set_cb (Gt
502 * @param ts the tree selection object 502 * @param ts the tree selection object
503 * @param user_data the 'struct EditPublicationDialogContext' 503 * @param user_data the 'struct EditPublicationDialogContext'
504 */ 504 */
505/* FIXME-UNCLEAN: connect this signal via glade (modern versions of Glade support this) */ 505/* FIXME-GTK3: connect this signal via glade (modern versions of Glade support this) */
506static void 506static void
507keywords_selection_changed_cb (GtkTreeSelection *ts, 507keywords_selection_changed_cb (GtkTreeSelection *ts,
508 gpointer user_data) 508 gpointer user_data)
@@ -1152,7 +1152,7 @@ GNUNET_FS_GTK_edit_publish_dialog (GtkWindow * parent,
1152 gtk_widget_set_visible (GTK_WIDGET (root_label), 1152 gtk_widget_set_visible (GTK_WIDGET (root_label),
1153 is_namespace_edit ? TRUE : FALSE); 1153 is_namespace_edit ? TRUE : FALSE);
1154 1154
1155 /* FIXME-UNCLEAN: these signal handlers can be set by (modern) versions of Glade */ 1155 /* FIXME-GTK3: these signal handlers can be set by (modern) versions of Glade */
1156 keywords_selection = gtk_tree_view_get_selection (ctx->keywords_treeview); 1156 keywords_selection = gtk_tree_view_get_selection (ctx->keywords_treeview);
1157 g_signal_connect (G_OBJECT (keywords_selection), "changed", 1157 g_signal_connect (G_OBJECT (keywords_selection), "changed",
1158 G_CALLBACK (keywords_selection_changed_cb), ctx); 1158 G_CALLBACK (keywords_selection_changed_cb), ctx);