aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-03 23:29:51 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-03 23:29:51 +0000
commit05947dc3b8a1a773a941ee096b885bb69c6d3ee4 (patch)
tree2d116db87fa6b38ba5dbcb5e03c81022c263100f
parent953bd35100727319bd916fa00ffcb7a804c30c63 (diff)
downloadgnunet-gtk-05947dc3b8a1a773a941ee096b885bb69c6d3ee4.tar.gz
gnunet-gtk-05947dc3b8a1a773a941ee096b885bb69c6d3ee4.zip
-notes
-rw-r--r--contrib/gnunet_fs_gtk_download_as_dialog.glade2
-rw-r--r--src/fs/gnunet-fs-gtk_download-save-as.c9
2 files changed, 7 insertions, 4 deletions
diff --git a/contrib/gnunet_fs_gtk_download_as_dialog.glade b/contrib/gnunet_fs_gtk_download_as_dialog.glade
index 1ee0593b..31587f41 100644
--- a/contrib/gnunet_fs_gtk_download_as_dialog.glade
+++ b/contrib/gnunet_fs_gtk_download_as_dialog.glade
@@ -17,9 +17,9 @@
17 <property name="destroy_with_parent">True</property> 17 <property name="destroy_with_parent">True</property>
18 <property name="icon_name">document-save-as</property> 18 <property name="icon_name">document-save-as</property>
19 <property name="type_hint">dialog</property> 19 <property name="type_hint">dialog</property>
20 <property name="preview_widget_active">False</property>
21 <property name="action">save</property> 20 <property name="action">save</property>
22 <property name="use_preview_label">False</property> 21 <property name="use_preview_label">False</property>
22 <property name="preview_widget_active">False</property>
23 <signal name="response" handler="GNUNET_GTK_save_as_dialog_response_cb"/> 23 <signal name="response" handler="GNUNET_GTK_save_as_dialog_response_cb"/>
24 <signal name="delete_event" handler="GNUNET_GTK_save_as_dialog_delete_event_cb"/> 24 <signal name="delete_event" handler="GNUNET_GTK_save_as_dialog_delete_event_cb"/>
25 <child internal-child="vbox"> 25 <child internal-child="vbox">
diff --git a/src/fs/gnunet-fs-gtk_download-save-as.c b/src/fs/gnunet-fs-gtk_download-save-as.c
index 96dd2f45..f71bb2ed 100644
--- a/src/fs/gnunet-fs-gtk_download-save-as.c
+++ b/src/fs/gnunet-fs-gtk_download-save-as.c
@@ -117,10 +117,13 @@ GNUNET_GTK_save_as_dialog_response_cb (GtkDialog * dialog,
117 GtkToggleButton *cb; 117 GtkToggleButton *cb;
118 118
119 dc = dlc->dc; 119 dc = dlc->dc;
120
121 /* FIXME: we should get '-5' (OK) when the user presses 'save'
122 (that's the number set in the glade file), but somehow we do not :-( */
120 fprintf (stderr, 123 fprintf (stderr,
121 "Response is %u, ok is %u\n", 124 "Dialog response code is %d\n",
122 dlc->response, 125 dlc->response);
123 GTK_RESPONSE_OK); 126
124 if (GTK_RESPONSE_OK != dlc->response) 127 if (GTK_RESPONSE_OK != dlc->response)
125 { 128 {
126 save_as_dialog_free_download_context (dc); 129 save_as_dialog_free_download_context (dc);