summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg <code@gregorkopf.de>2015-07-15 21:36:45 +0200
committerSebastian Leske <sebastian.leske@sleske.name>2015-12-17 23:56:31 +0100
commite0d189992ba2ab742004b62146c8eea3c4c6d558 (patch)
treeb8ba1fe33470380aa6343f1370de414f2a226f65
parent52a7a81b41824ee0b0f116f1e68852285eab48fb (diff)
downloadnavit-e0d189992ba2ab742004b62146c8eea3c4c6d558.tar.gz
Fix:gui_internal:Properly hide Prev/Next buttons initially.
Prevent the Prev/Next buttons in the search dialog from being reachable using the cursor keys even if they are not displayed. To reproduce: Open search dialog, press Cursor down until focus returns to the top of the screen. Without this fix, the Prev button appears at the top of the screen and is focused.
-rw-r--r--navit/gui/internal/gui_internal_widget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/gui/internal/gui_internal_widget.c b/navit/gui/internal/gui_internal_widget.c
index eb300e302..7f22f6e24 100644
--- a/navit/gui/internal/gui_internal_widget.c
+++ b/navit/gui/internal/gui_internal_widget.c
@@ -835,6 +835,8 @@ gui_internal_scroll_buttons_init(struct gui_priv *this, struct widget *widget, s
sb->button_box=gui_internal_box_new(this, gravity_center|orientation_horizontal);
sb->button_box->background=this->background;
+ sb->prev_button->state &= ~STATE_SENSITIVE;
+ sb->next_button->state &= ~STATE_SENSITIVE;
gui_internal_widget_append(sb->button_box, sb->prev_button);
gui_internal_widget_append(sb->button_box, sb->next_button);