diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk_event-handler.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk_event-handler.c | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/src/fs/gnunet-fs-gtk_event-handler.c b/src/fs/gnunet-fs-gtk_event-handler.c index 49483158..3643d379 100644 --- a/src/fs/gnunet-fs-gtk_event-handler.c +++ b/src/fs/gnunet-fs-gtk_event-handler.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "gnunet-fs-gtk_common.h" | 27 | #include "gnunet-fs-gtk_common.h" |
28 | #include "gnunet-fs-gtk_download-save-as.h" | 28 | #include "gnunet-fs-gtk_download-save-as.h" |
29 | #include "gnunet-fs-gtk_event-handler.h" | 29 | #include "gnunet-fs-gtk_event-handler.h" |
30 | 30 | #include "gnunet-fs-gtk_unindex.h" | |
31 | 31 | ||
32 | /** | 32 | /** |
33 | * We have a single tab where we display publishing operations. | 33 | * We have a single tab where we display publishing operations. |
@@ -1366,7 +1366,7 @@ GNUNET_FS_GTK_search_result_clear_button_clicked (GtkButton * button, gpointer u | |||
1366 | GtkTreeIter iter; | 1366 | GtkTreeIter iter; |
1367 | 1367 | ||
1368 | tm = GTK_TREE_MODEL (tab->ts); | 1368 | tm = GTK_TREE_MODEL (tab->ts); |
1369 | if (TRUE != gtk_tree_model_get_iter_first (tm, &iter)) | 1369 | if (! gtk_tree_model_get_iter_first (tm, &iter)) |
1370 | return; | 1370 | return; |
1371 | do | 1371 | do |
1372 | { | 1372 | { |
@@ -1386,11 +1386,11 @@ GNUNET_FS_GTK_search_result_clear_button_clicked (GtkButton * button, gpointer u | |||
1386 | directory; clean it up */ | 1386 | directory; clean it up */ |
1387 | free_search_result (sr); | 1387 | free_search_result (sr); |
1388 | /* the above call clobbered our 'iter', restart from the beginning... */ | 1388 | /* the above call clobbered our 'iter', restart from the beginning... */ |
1389 | if (TRUE != gtk_tree_model_get_iter_first (tm, &iter)) | 1389 | if (! gtk_tree_model_get_iter_first (tm, &iter)) |
1390 | return; | 1390 | return; |
1391 | } | 1391 | } |
1392 | } | 1392 | } |
1393 | while (TRUE == gtk_tree_model_iter_next (tm, &iter)); | 1393 | while (gtk_tree_model_iter_next (tm, &iter)); |
1394 | } | 1394 | } |
1395 | 1395 | ||
1396 | 1396 | ||
@@ -3001,26 +3001,30 @@ GNUNET_GTK_fs_event_handler (void *cls, | |||
3001 | close_search_tab (info->value.search.cctx); | 3001 | close_search_tab (info->value.search.cctx); |
3002 | return NULL; | 3002 | return NULL; |
3003 | case GNUNET_FS_STATUS_UNINDEX_START: | 3003 | case GNUNET_FS_STATUS_UNINDEX_START: |
3004 | GNUNET_break (0); | 3004 | return info->value.unindex.cctx; |
3005 | break; | ||
3006 | case GNUNET_FS_STATUS_UNINDEX_RESUME: | 3005 | case GNUNET_FS_STATUS_UNINDEX_RESUME: |
3007 | GNUNET_break (0); | 3006 | return GNUNET_FS_GTK_unindex_handle_resume_ (info->value.unindex.uc, |
3008 | break; | 3007 | info->value.unindex.filename, |
3008 | info->value.unindex.size, | ||
3009 | info->value.unindex.completed, | ||
3010 | info->value.unindex.specifics.resume.message); | ||
3009 | case GNUNET_FS_STATUS_UNINDEX_SUSPEND: | 3011 | case GNUNET_FS_STATUS_UNINDEX_SUSPEND: |
3010 | GNUNET_break (0); | 3012 | GNUNET_FS_GTK_unindex_handle_stop_ (info->value.unindex.cctx); |
3011 | break; | 3013 | return NULL; |
3012 | case GNUNET_FS_STATUS_UNINDEX_PROGRESS: | 3014 | case GNUNET_FS_STATUS_UNINDEX_PROGRESS: |
3013 | GNUNET_break (0); | 3015 | GNUNET_FS_GTK_unindex_handle_progress_ (info->value.unindex.cctx, |
3014 | break; | 3016 | info->value.unindex.completed); |
3017 | return info->value.unindex.cctx; | ||
3015 | case GNUNET_FS_STATUS_UNINDEX_ERROR: | 3018 | case GNUNET_FS_STATUS_UNINDEX_ERROR: |
3016 | GNUNET_break (0); | 3019 | GNUNET_FS_GTK_unindex_handle_error_ (info->value.unindex.cctx, |
3017 | break; | 3020 | info->value.unindex.specifics.error.message); |
3021 | return info->value.unindex.cctx; | ||
3018 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: | 3022 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: |
3019 | GNUNET_break (0); | 3023 | GNUNET_FS_GTK_unindex_handle_completed_ (info->value.unindex.cctx); |
3020 | break; | 3024 | return info->value.unindex.cctx; |
3021 | case GNUNET_FS_STATUS_UNINDEX_STOPPED: | 3025 | case GNUNET_FS_STATUS_UNINDEX_STOPPED: |
3022 | GNUNET_break (0); | 3026 | GNUNET_FS_GTK_unindex_handle_stop_ (info->value.unindex.cctx); |
3023 | break; | 3027 | return NULL; |
3024 | default: | 3028 | default: |
3025 | GNUNET_break (0); | 3029 | GNUNET_break (0); |
3026 | break; | 3030 | break; |