aboutsummaryrefslogtreecommitdiff
path: root/src/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs.c')
-rw-r--r--src/fs.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/fs.c b/src/fs.c
index d1a6998e..ab0daa27 100644
--- a/src/fs.c
+++ b/src/fs.c
@@ -61,15 +61,25 @@ static gint saveEventProcessor(SaveCall * call) {
61 if directory, also update search view! */ 61 if directory, also update search view! */
62 break; 62 break;
63 case download_error: 63 case download_error:
64 BREAK();
64 LOG(LOG_ERROR, 65 LOG(LOG_ERROR,
65 _("Error while downloading: %s\n"), 66 _("Error while downloading: %s\n"),
66 event->data.message); 67 event->data.message);
67 break; 68 break;
68 case upload_progress: 69 case upload_progress:
69 BREAK(); 70 displayUploadUpdate(event->data.UploadProgress.main_filename,
71 event->data.UploadProgress.filename,
72 event->data.UploadProgress.completed,
73 event->data.UploadProgress.total);
74 displayUploadUpdate(event->data.UploadProgress.main_filename,
75 event->data.UploadProgress.main_filename,
76 event->data.UploadProgress.main_completed,
77 event->data.UploadProgress.main_total);
70 break; 78 break;
71 case upload_complete: 79 case upload_complete:
72 BREAK(); 80 displayUploadComplete(event->data.UploadComplete.main_filename,
81 event->data.UploadComplete.filename,
82 event->data.UploadComplete.uri);
73 break; 83 break;
74 case upload_error: 84 case upload_error:
75 LOG(LOG_ERROR, 85 LOG(LOG_ERROR,
@@ -85,6 +95,7 @@ static gint saveEventProcessor(SaveCall * call) {
85 _("Disconnected from gnunetd.\n")); 95 _("Disconnected from gnunetd.\n"));
86 break; 96 break;
87 default: 97 default:
98 BREAK();
88 LOG(LOG_ERROR, 99 LOG(LOG_ERROR,
89 _("Unhandled (unknown) FSUI event: %u.\n"), 100 _("Unhandled (unknown) FSUI event: %u.\n"),
90 event->type); 101 event->type);
@@ -105,7 +116,6 @@ static void eventProcessor(void * cls,
105} 116}
106 117
107void gtk_fs_init() { 118void gtk_fs_init() {
108 /* FSUI initialization here! */
109 ctx = FSUI_start("gnunet-gtk", 119 ctx = FSUI_start("gnunet-gtk",
110 YES, 120 YES,
111 &eventProcessor, 121 &eventProcessor,