aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-10-25 11:50:01 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-10-25 11:50:01 +0000
commit6eedb9577b6efbd8bf141df74b34f27d94d8668a (patch)
treebbf2227006e2902b9969750bb645731f08a219c5 /gtk
parentf9f52e367e94817822212c3a724011f37ce4c5ee (diff)
Make a new popup when appending a dot to an existing filer entry without
an existing popup. svn path=/trunk/; revision=26552
Diffstat (limited to 'gtk')
-rw-r--r--gtk/filter_autocomplete.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/filter_autocomplete.c b/gtk/filter_autocomplete.c
index 8d109c4e6c..0c2b3787c0 100644
--- a/gtk/filter_autocomplete.c
+++ b/gtk/filter_autocomplete.c
@@ -289,7 +289,7 @@ filter_string_te_key_pressed_cb(GtkWidget *filter_te, GdkEventKey *event)
* then construct the popup window again.
**/
if(k==GDK_period || k==GDK_KP_Decimal) {
- if( !strchr(prefix, '.') ) {
+ if( !strchr(prefix, '.') || !popup_win) {
gchar* name_with_period;
@@ -329,7 +329,7 @@ filter_string_te_key_pressed_cb(GtkWidget *filter_te, GdkEventKey *event)
} else if(g_ascii_isalnum(ckey) && !popup_win) {
gchar *name = g_strconcat(prefix, event->string, NULL);
- if (strlen(name) && !strchr(name, '.')) {
+ if( !strchr(name, '.') ) {
popup_win = filter_autocomplete_new(filter_te, name, TRUE);
g_object_set_data(G_OBJECT(w_toplevel), E_FILT_AUTOCOMP_PTR_KEY, popup_win);
}