diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-23 19:30:17 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-23 19:30:17 +0300 |
commit | dd73346aad190239ed133d0c4835dbaa05d1b0cd (patch) | |
tree | 5946174857fce2b5fcf14d0a662e4ce26745e6ca /src/ui/labelwidget.c | |
parent | 4b81b3bc704ec8a7041559b4f9a141e96189a7c7 (diff) |
Entering URLs and updating the navbar
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r-- | src/ui/labelwidget.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c index 7b64857b..341c2f0e 100644 --- a/src/ui/labelwidget.c +++ b/src/ui/labelwidget.c | |||
@@ -30,19 +30,23 @@ static void trigger_LabelWidget_(const iLabelWidget *d) { | |||
30 | } | 30 | } |
31 | 31 | ||
32 | static iBool processEvent_LabelWidget_(iLabelWidget *d, const SDL_Event *ev) { | 32 | static iBool processEvent_LabelWidget_(iLabelWidget *d, const SDL_Event *ev) { |
33 | iWidget *w = &d->widget; | ||
33 | if (isCommand_UserEvent(ev, "metrics.changed")) { | 34 | if (isCommand_UserEvent(ev, "metrics.changed")) { |
34 | updateSize_LabelWidget(d); | 35 | updateSize_LabelWidget(d); |
35 | } | 36 | } |
36 | if (!isEmpty_String(&d->command)) { | 37 | if (!isEmpty_String(&d->command)) { |
37 | switch (processEvent_Click(&d->click, ev)) { | 38 | switch (processEvent_Click(&d->click, ev)) { |
38 | case started_ClickResult: | 39 | case started_ClickResult: |
39 | setFlags_Widget(&d->widget, pressed_WidgetFlag, iTrue); | 40 | setFlags_Widget(w, pressed_WidgetFlag, iTrue); |
41 | refresh_Widget(w); | ||
40 | return iTrue; | 42 | return iTrue; |
41 | case aborted_ClickResult: | 43 | case aborted_ClickResult: |
42 | setFlags_Widget(&d->widget, pressed_WidgetFlag, iFalse); | 44 | setFlags_Widget(w, pressed_WidgetFlag, iFalse); |
45 | refresh_Widget(w); | ||
43 | return iTrue; | 46 | return iTrue; |
44 | case finished_ClickResult: | 47 | case finished_ClickResult: |
45 | setFlags_Widget(&d->widget, pressed_WidgetFlag, iFalse); | 48 | setFlags_Widget(w, pressed_WidgetFlag, iFalse); |
49 | refresh_Widget(w); | ||
46 | trigger_LabelWidget_(d); | 50 | trigger_LabelWidget_(d); |
47 | return iTrue; | 51 | return iTrue; |
48 | case double_ClickResult: | 52 | case double_ClickResult: |