summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-09 10:15:31 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-09 10:15:31 +0300
commit3e984cb4665feb0dd64c4f2850431f2437c11a42 (patch)
tree4ec2158b809af77740e94d1d8ea89af7ea6bd219
parent380d8293cf1ca47c07278502189256890e13c0d1 (diff)
BindingsWidget: Scrollbar is not shown
IssueID #257
-rw-r--r--src/ui/bindingswidget.c6
-rw-r--r--src/ui/labelwidget.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/bindingswidget.c b/src/ui/bindingswidget.c
index 6e8fa5b5..4cf8df8e 100644
--- a/src/ui/bindingswidget.c
+++ b/src/ui/bindingswidget.c
@@ -179,6 +179,12 @@ static iBool processEvent_BindingsWidget_(iBindingsWidget *d, const SDL_Event *e
179 postCommand_App("bindings.changed"); 179 postCommand_App("bindings.changed");
180 return iTrue; 180 return iTrue;
181 } 181 }
182 else if (startsWith_CStr(cmd, "tabs.changed id:bindings")) {
183 /* Force the scrollbar to unfade. The list is created hidden so the scrollbar is not
184 shown by default.*/
185 updateVisible_ListWidget(d->list);
186 return iFalse;
187 }
182 else if (equal_Command(cmd, "lang.changed")) { 188 else if (equal_Command(cmd, "lang.changed")) {
183 updateItems_BindingsWidget_(d); 189 updateItems_BindingsWidget_(d);
184 return iFalse; 190 return iFalse;
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index e4ab378d..5d0f0041 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -556,5 +556,5 @@ iLabelWidget *newColor_LabelWidget(const char *text, int color) {
556iBeginDefineSubclass(LabelWidget, Widget) 556iBeginDefineSubclass(LabelWidget, Widget)
557 .processEvent = (iAny *) processEvent_LabelWidget_, 557 .processEvent = (iAny *) processEvent_LabelWidget_,
558 .draw = (iAny *) draw_LabelWidget_, 558 .draw = (iAny *) draw_LabelWidget_,
559 .sizeChanged = (iAny *) sizeChanged_LabelWidget_, 559 .sizeChanged = (iAny *) sizeChanged_LabelWidget_,
560iEndDefineSubclass(LabelWidget) 560iEndDefineSubclass(LabelWidget)