132 |
{ |
{ |
133 |
gchar *searchstr, *upsearchstr, *callsign, *labeltext, *current, *nr; |
gchar *searchstr, *upsearchstr, *callsign, *labeltext, *current, *nr; |
134 |
GtkWidget *searchdialog, *searchresultdialog, *searchcomboentry, |
GtkWidget *searchdialog, *searchresultdialog, *searchcomboentry, |
135 |
*resultlabel, *searchcheckbutton; |
*resultlabel, *searchcheckbutton, *searchcombo; |
136 |
gint i; |
gint i; |
137 |
gboolean result = FALSE, searchopen; |
gboolean result = FALSE, searchopen; |
138 |
GList *node; |
GList *node; |
142 |
GtkTreeSelection *selection; |
GtkTreeSelection *selection; |
143 |
GtkTreePath *path; |
GtkTreePath *path; |
144 |
gboolean valid; |
gboolean valid; |
145 |
|
|
146 |
searchdialog = gtk_widget_get_toplevel (GTK_WIDGET (button)); |
searchdialog = gtk_widget_get_toplevel (GTK_WIDGET (button)); |
147 |
|
searchcombo = lookup_widget (searchdialog, "searchcombo"); |
148 |
searchcomboentry = lookup_widget (searchdialog, "searchcomboentry"); |
searchcomboentry = lookup_widget (searchdialog, "searchcomboentry"); |
149 |
searchcheckbutton = lookup_widget (searchdialog, "searchcheckbutton"); |
searchcheckbutton = lookup_widget (searchdialog, "searchcheckbutton"); |
150 |
|
|
212 |
g_free (searchstr); |
g_free (searchstr); |
213 |
g_free (upsearchstr); |
g_free (upsearchstr); |
214 |
|
|
215 |
|
|
216 |
if (!searchopen) |
if (!searchopen) |
217 |
{ |
{ |
218 |
state.searchstr = g_strdup(""); |
state.searchstr = g_strdup(""); |
219 |
gtk_widget_set_sensitive (mainwindow, 1); |
gtk_widget_set_sensitive (mainwindow, 1); |
220 |
gtk_widget_destroy (searchdialog); |
gtk_widget_destroy (searchdialog); |
221 |
} |
} |
222 |
|
else |
223 |
|
{ |
224 |
|
if (searchhistory) |
225 |
|
gtk_combo_set_popdown_strings (GTK_COMBO (searchcombo), searchhistory); |
226 |
|
gtk_editable_delete_text (GTK_EDITABLE (searchcomboentry), 0, -1); |
227 |
|
} |
228 |
} |
} |
229 |
|
|
230 |
|
|