diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-03 07:46:16 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-03 07:46:16 +0200 |
commit | 6e917280380316eba77b1dfa983daf488510e70f (patch) | |
tree | 50b31d131b6a4aa7edd6b90e8ed34b4706cf74ac /src/ui/util.c | |
parent | ba90c9f0b61419b4d8878276be898cc0012a37a0 (diff) |
Mobile: Manage Identities via Settings
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 61d3e9bb..de838769 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1215,6 +1215,15 @@ iLabelWidget *findMenuItem_Widget(iWidget *menu, const char *command) { | |||
1215 | return NULL; | 1215 | return NULL; |
1216 | } | 1216 | } |
1217 | 1217 | ||
1218 | iWidget *findUserData_Widget(iWidget *d, void *userData) { | ||
1219 | iForEach(ObjectList, i, children_Widget(d)) { | ||
1220 | if (userData_Object(i.object) == userData) { | ||
1221 | return i.object; | ||
1222 | } | ||
1223 | } | ||
1224 | return NULL; | ||
1225 | } | ||
1226 | |||
1218 | void setMenuItemDisabled_Widget(iWidget *menu, const char *command, iBool disable) { | 1227 | void setMenuItemDisabled_Widget(iWidget *menu, const char *command, iBool disable) { |
1219 | if (flags_Widget(menu) & nativeMenu_WidgetFlag) { | 1228 | if (flags_Widget(menu) & nativeMenu_WidgetFlag) { |
1220 | setDisabled_NativeMenuItem(findNativeMenuItem_Widget(menu, command), disable); | 1229 | setDisabled_NativeMenuItem(findNativeMenuItem_Widget(menu, command), disable); |