diff options
author | Daniel Carl <danielcarl@gmx.de> | 2012-12-23 00:43:15 +0100 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2012-12-23 00:43:15 +0100 |
commit | e8f998d384578e9fac75a3e85448fee3313b1840 (patch) | |
tree | 97544d1ecc8f428c9b30658eef2e01bc20355379 | |
parent | 394abf6def4ec542d63765116b6ae4c3f2d69d3b (diff) |
Do not add inputbox observers if hint will be fired.
-rw-r--r-- | src/hints.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hints.c b/src/hints.c index 8e9b9c1..8f81cdb 100644 --- a/src/hints.c +++ b/src/hints.c @@ -128,10 +128,10 @@ void hints_create(const gchar* input, guint mode, const guint prefixLength) if (g_list_length(hints->list) == 1) { /* only one element hinted - we can fire it */ hints_fire(1); + } else { + /* add event hanlder for inputbox */ + hints_observe_input(TRUE); } - - /* add event hanlder for inputbox */ - hints_observe_input(TRUE); } void hints_update(const gulong num) |