diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk-download.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk-download.c | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/src/fs/gnunet-fs-gtk-download.c b/src/fs/gnunet-fs-gtk-download.c index 1a7ff302..3f5f213b 100644 --- a/src/fs/gnunet-fs-gtk-download.c +++ b/src/fs/gnunet-fs-gtk-download.c | |||
@@ -35,35 +35,14 @@ struct dialog_context | |||
35 | struct DownloadContext *dc; | 35 | struct DownloadContext *dc; |
36 | }; | 36 | }; |
37 | 37 | ||
38 | void | ||
39 | GNUNET_GTK_save_as_dialog_ok_button_clicked_cb (GtkButton *button, | ||
40 | gpointer user_data) | ||
41 | { | ||
42 | return; | ||
43 | struct dialog_context *dlc = NULL; | ||
44 | dlc = g_object_get_data (G_OBJECT (button), "dialog-context"); | ||
45 | if (dlc != NULL) | ||
46 | dlc->response = 1; | ||
47 | } | ||
48 | |||
49 | void | ||
50 | GNUNET_GTK_save_as_dialog_cancel_button_clicked_cb (GtkButton *button, | ||
51 | gpointer user_data) | ||
52 | { | ||
53 | return; | ||
54 | struct dialog_context *dlc = NULL; | ||
55 | dlc = g_object_get_data (G_OBJECT (button), "dialog-context"); | ||
56 | if (dlc != NULL) | ||
57 | dlc->response = 2; | ||
58 | } | ||
59 | 38 | ||
60 | gboolean | 39 | gboolean |
61 | GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget *widget, GdkEvent *event, | 40 | GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget *widget, GdkEvent *event, |
62 | gpointer user_data) | 41 | gpointer user_data) |
63 | { | 42 | { |
64 | GtkBuilder *builder = NULL; | 43 | GtkBuilder *builder; |
65 | struct dialog_context *dlc = NULL; | 44 | struct dialog_context *dlc; |
66 | struct DownloadContext *dc = NULL; | 45 | struct DownloadContext *dc; |
67 | enum GNUNET_FS_DownloadOptions opt; | 46 | enum GNUNET_FS_DownloadOptions opt; |
68 | struct GNUNET_FS_Handle *fs; | 47 | struct GNUNET_FS_Handle *fs; |
69 | struct DownloadEntry *de; | 48 | struct DownloadEntry *de; |
@@ -146,7 +125,7 @@ void | |||
146 | GNUNET_GTK_save_as_dialog_response_cb (GtkDialog *dialog, | 125 | GNUNET_GTK_save_as_dialog_response_cb (GtkDialog *dialog, |
147 | gint response_id, gpointer user_data) | 126 | gint response_id, gpointer user_data) |
148 | { | 127 | { |
149 | struct dialog_context *dlc = NULL; | 128 | struct dialog_context *dlc; |
150 | dlc = g_object_get_data (G_OBJECT (dialog), "dialog-context"); | 129 | dlc = g_object_get_data (G_OBJECT (dialog), "dialog-context"); |
151 | if (dlc != NULL) | 130 | if (dlc != NULL) |
152 | dlc->response = response_id; | 131 | dlc->response = response_id; |