diff options
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r-- | src/plugins/fs/search.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index 669477f6..f062dc88 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -318,10 +318,10 @@ fs_search_started(struct FSUI_SearchList * fsui_list, | |||
318 | = glade_xml_new(getGladeFileName(), | 318 | = glade_xml_new(getGladeFileName(), |
319 | "searchTabLabelWindow", | 319 | "searchTabLabelWindow", |
320 | PACKAGE_NAME); | 320 | PACKAGE_NAME); |
321 | connectGladeWithPlugins(list->labelXML); | ||
321 | list->tab_label | 322 | list->tab_label |
322 | = extractMainWidgetFromWindow(list->labelXML, | 323 | = extractMainWidgetFromWindow(list->labelXML, |
323 | "searchTabLabelWindow"); | 324 | "searchTabLabelWindow"); |
324 | |||
325 | /* process existing results */ | 325 | /* process existing results */ |
326 | for (i=0;i<resultCount;i++) | 326 | for (i=0;i<resultCount;i++) |
327 | fs_search_result_received(list, | 327 | fs_search_result_received(list, |
@@ -385,6 +385,7 @@ static void freeIterSubtree(GtkTreeModel * tree, | |||
385 | * Update views accordingly. | 385 | * Update views accordingly. |
386 | */ | 386 | */ |
387 | void fs_search_aborted(SearchList * list) { | 387 | void fs_search_aborted(SearchList * list) { |
388 | printf("search aborted\n"); | ||
388 | /* FIXME: show aborted status somehow! */ | 389 | /* FIXME: show aborted status somehow! */ |
389 | } | 390 | } |
390 | 391 | ||
@@ -616,6 +617,7 @@ void on_closeSearchButton_clicked_fs(GtkWidget * searchPage, | |||
616 | SearchList * list; | 617 | SearchList * list; |
617 | struct FCBC fcbc; | 618 | struct FCBC fcbc; |
618 | 619 | ||
620 | printf("close button clicked\n"); | ||
619 | list = search_head; | 621 | list = search_head; |
620 | while (list != NULL) { | 622 | while (list != NULL) { |
621 | if ( (list->searchpage == searchPage) || | 623 | if ( (list->searchpage == searchPage) || |
@@ -624,10 +626,13 @@ void on_closeSearchButton_clicked_fs(GtkWidget * searchPage, | |||
624 | list = list->next; | 626 | list = list->next; |
625 | } | 627 | } |
626 | GE_ASSERT(ectx, list != NULL); | 628 | GE_ASSERT(ectx, list != NULL); |
627 | fcbc.method = &FSUI_stopSearch; | 629 | fcbc.method = &FSUI_abortSearch; |
628 | fcbc.argument = list->fsui_list; | 630 | fcbc.argument = list->fsui_list; |
629 | run_with_save_calls(&fsui_callback, | 631 | run_with_save_calls(&fsui_callback, |
630 | &fcbc); | 632 | &fcbc); |
633 | fcbc.method = &FSUI_stopSearch; | ||
634 | run_with_save_calls(&fsui_callback, | ||
635 | &fcbc); | ||
631 | } | 636 | } |
632 | 637 | ||
633 | /** | 638 | /** |
@@ -637,6 +642,7 @@ void on_abortSearchButton_clicked_fs(GtkWidget * searchPage, | |||
637 | GtkWidget * closeButton) { | 642 | GtkWidget * closeButton) { |
638 | SearchList * list; | 643 | SearchList * list; |
639 | 644 | ||
645 | printf("abort button clicked\n"); | ||
640 | list = search_head; | 646 | list = search_head; |
641 | while (list != NULL) { | 647 | while (list != NULL) { |
642 | if (list->searchpage == searchPage) | 648 | if (list->searchpage == searchPage) |
@@ -661,10 +667,13 @@ static void stopSearch(GtkTreeModel * model, | |||
661 | SEARCH_SUMMARY_INTERNAL, &s, | 667 | SEARCH_SUMMARY_INTERNAL, &s, |
662 | -1); | 668 | -1); |
663 | if (s != NULL) { | 669 | if (s != NULL) { |
664 | fcbc.method = &FSUI_stopSearch; | 670 | fcbc.method = &FSUI_abortSearch; |
665 | fcbc.argument = s->fsui_list; | 671 | fcbc.argument = s->fsui_list; |
666 | run_with_save_calls(&fsui_callback, | 672 | run_with_save_calls(&fsui_callback, |
667 | &fcbc); | 673 | &fcbc); |
674 | fcbc.method = &FSUI_stopSearch; | ||
675 | run_with_save_calls(&fsui_callback, | ||
676 | &fcbc); | ||
668 | } | 677 | } |
669 | } | 678 | } |
670 | 679 | ||
@@ -675,6 +684,7 @@ void on_closeSearchSummaryButton_clicked_fs(GtkWidget * closeButton, | |||
675 | GtkWidget * treeview) { | 684 | GtkWidget * treeview) { |
676 | GtkTreeSelection * selection; | 685 | GtkTreeSelection * selection; |
677 | 686 | ||
687 | printf("stop summary button clicked\n"); | ||
678 | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); | 688 | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); |
679 | ggc_tree_selection_selected_foreach | 689 | ggc_tree_selection_selected_foreach |
680 | (selection, | 690 | (selection, |
@@ -709,6 +719,7 @@ void on_abortSearchSummaryButton_clicked_fs(GtkWidget * closeButton, | |||
709 | GtkWidget * treeview) { | 719 | GtkWidget * treeview) { |
710 | GtkTreeSelection * selection; | 720 | GtkTreeSelection * selection; |
711 | 721 | ||
722 | printf("abort summary button clicked\n"); | ||
712 | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); | 723 | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); |
713 | ggc_tree_selection_selected_foreach | 724 | ggc_tree_selection_selected_foreach |
714 | (selection, | 725 | (selection, |