diff options
author | jcid <devnull@localhost> | 2008-10-03 18:55:45 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-10-03 18:55:45 +0200 |
commit | c8054c09d4652a435089f5ec042b9a33bcbe12d9 (patch) | |
tree | 857ecc75523c346332bc1b0f653a304fc90438dc /src/ui.cc | |
parent | e00c27a018efd6e2e526e33c4e0a84e47ca8691d (diff) |
- insert workaround part2
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -251,6 +251,7 @@ static void location_cb(Widget *wid, void *data) Input *i = (Input*)wid; UI *ui = (UI*)data; + _MSG("location_cb()\n"); /* This test is necessary because WHEN_ENTER_KEY also includes * other events we're not interested in. For instance pressing * The Back or Forward, buttons, or the first click on a rendered @@ -826,6 +827,8 @@ const char *UI::get_location() void UI::set_location(const char *str) { if (!str) str = ""; + // This text() call clears fl_pending_callback, avoiding + // an extra location_cb() call. Location->text(str); Location->position(strlen(str)); } |