diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-03 08:20:58 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-03 08:20:58 +0200 |
commit | 97f196d943906f03b9ad106957be0790b6544fbb (patch) | |
tree | 3f93211418edb7d6f5124e320e658f6aae71e515 /src/ui | |
parent | 69a201cc3883ce784844cf4a4c84eb7768684ca2 (diff) |
Added menu item for import a certificate
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index c13d5843..a447340b 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -178,6 +178,8 @@ static iMenuItem bookmarksMenuItems_[] = { | |||
178 | 178 | ||
179 | static const iMenuItem identityMenuItems_[] = { | 179 | static const iMenuItem identityMenuItems_[] = { |
180 | { "New Identity...", SDLK_n, KMOD_PRIMARY | KMOD_SHIFT, "ident.new" }, | 180 | { "New Identity...", SDLK_n, KMOD_PRIMARY | KMOD_SHIFT, "ident.new" }, |
181 | { "---", 0, 0, NULL }, | ||
182 | { "Import...", 0, 0, "ident.import" }, | ||
181 | }; | 183 | }; |
182 | 184 | ||
183 | static const iMenuItem helpMenuItems_[] = { | 185 | static const iMenuItem helpMenuItems_[] = { |
@@ -191,6 +193,7 @@ static const iMenuItem identityButtonMenuItems_[] = { | |||
191 | { "---", 0, 0, NULL }, | 193 | { "---", 0, 0, NULL }, |
192 | #if !defined (iHaveNativeMenus) | 194 | #if !defined (iHaveNativeMenus) |
193 | { "New Identity...", SDLK_n, KMOD_PRIMARY | KMOD_SHIFT, "ident.new" }, | 195 | { "New Identity...", SDLK_n, KMOD_PRIMARY | KMOD_SHIFT, "ident.new" }, |
196 | { "Import...", 0, 0, "ident.import" }, | ||
194 | { "---", 0, 0, NULL }, | 197 | { "---", 0, 0, NULL }, |
195 | { "Show Identities", '4', KMOD_PRIMARY, "sidebar.mode arg:3 show:1" }, | 198 | { "Show Identities", '4', KMOD_PRIMARY, "sidebar.mode arg:3 show:1" }, |
196 | #else | 199 | #else |
@@ -521,7 +524,7 @@ static void setupUserInterface_Window(iWindow *d) { | |||
521 | setId_Widget(as_Widget(idMenu), "navbar.ident"); | 524 | setId_Widget(as_Widget(idMenu), "navbar.ident"); |
522 | iLabelWidget *lock = | 525 | iLabelWidget *lock = |
523 | addChildFlags_Widget(navBar, | 526 | addChildFlags_Widget(navBar, |
524 | iClob(newIcon_LabelWidget("\U0001f513", 0, 0, "server.showcert")), | 527 | iClob(newIcon_LabelWidget("\U0001f513", SDLK_i, KMOD_PRIMARY, "document.info")), |
525 | frameless_WidgetFlag | tight_WidgetFlag); | 528 | frameless_WidgetFlag | tight_WidgetFlag); |
526 | setId_Widget(as_Widget(lock), "navbar.lock"); | 529 | setId_Widget(as_Widget(lock), "navbar.lock"); |
527 | setFont_LabelWidget(lock, defaultSymbols_FontId); | 530 | setFont_LabelWidget(lock, defaultSymbols_FontId); |