aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r--src/plugins/fs/search.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index f026d07e..cb292e22 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -46,14 +46,12 @@ void on_fssearchbutton_clicked_fs(gpointer dummy2,
46 gint i; 46 gint i;
47 SearchList * list; 47 SearchList * list;
48 GtkTreeIter iter; 48 GtkTreeIter iter;
49 GtkWidget * searchKeywordGtkCB; 49 GtkComboBox * searchKeywordGtkCB;
50 GtkWidget * searchNamespaceGtkCB; 50 GtkWidget * searchNamespaceGtkCB;
51 GtkNotebook * notebook; 51 GtkNotebook * notebook;
52 52
53 searchKeywordGtkCB 53 searchString = getEntryLineValue(getMainXML(),
54 = glade_xml_get_widget(getMainXML(), 54 "fssearchKeywordComboBoxEntry");
55 "fssearchKeywordComboBoxEntry");
56 searchString = gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(searchKeywordGtkCB))));
57 if (searchString == NULL) { 55 if (searchString == NULL) {
58 GE_LOG(ectx, 56 GE_LOG(ectx,
59 GE_ERROR | GE_USER | GE_IMMEDIATE, 57 GE_ERROR | GE_USER | GE_IMMEDIATE,
@@ -62,13 +60,14 @@ void on_fssearchbutton_clicked_fs(gpointer dummy2,
62 } 60 }
63 /* add the keyword to the list of keywords that have 61 /* add the keyword to the list of keywords that have
64 been used so far */ 62 been used so far */
65 i = gtk_combo_box_get_active(GTK_COMBO_BOX(searchKeywordGtkCB)); 63 searchKeywordGtkCB
64 = GTK_COMBO_BOX(glade_xml_get_widget(getMainXML(),
65 "fssearchKeywordComboBoxEntry"));
66 i = gtk_combo_box_get_active(searchKeywordGtkCB);
66 if (i == -1) { 67 if (i == -1) {
67 GtkListStore * model; 68 GtkListStore * model;
68 69
69 model = GTK_LIST_STORE 70 model = GTK_LIST_STORE(gtk_combo_box_get_model(searchKeywordGtkCB));
70 (gtk_combo_box_get_model
71 (GTK_COMBO_BOX(searchKeywordGtkCB)));
72 gtk_list_store_prepend(model, 71 gtk_list_store_prepend(model,
73 &iter); 72 &iter);
74 gtk_list_store_set(model, 73 gtk_list_store_set(model,
@@ -608,6 +607,14 @@ static void freeIterSubtree(GtkTreeModel * tree,
608} 607}
609 608
610/** 609/**
610 * FSUI event: a search was aborted.
611 * Update views accordingly.
612 */
613void fs_search_aborted(SearchList * list) {
614 /* FIXME: show aborted status somehow! */
615}
616
617/**
611 * FSUI event: a search was stopped. Remove the 618 * FSUI event: a search was stopped. Remove the
612 * respective tab and its entry in the summary. 619 * respective tab and its entry in the summary.
613 */ 620 */