Make a new popup when appending a dot to an existing filer entry without

an existing popup.

svn path=/trunk/; revision=26552
This commit is contained in:
Stig Bjørlykke 2008-10-25 11:50:01 +00:00
parent f9f52e367e
commit 6eedb9577b
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}