summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-24 15:36:05 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-24 15:36:05 +0300
commit90717c77b29c4a8ca0c3f49e9b4670b6fcbbe9d9 (patch)
treeba6ff38e9f86e6eb9a9f9a0ce741f2f98ac3aec4 /src/ui/util.c
parent02603e398ac7a450230349d68130d6da46ec7772 (diff)
Added "Show Downloads" and "Open Downloaded File"
Contents of the Downloads folder can now be viewed as a directory index page.
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index 586a08be..e3a3689b 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -1927,9 +1927,16 @@ static iBool messageHandler_(iWidget *msg, const char *cmd) {
1927 return iFalse; 1927 return iFalse;
1928} 1928}
1929 1929
1930iWidget *makeMessage_Widget(const char *title, const char *msg) { 1930iWidget *makeSimpleMessage_Widget(const char *title, const char *msg) {
1931 iWidget *dlg = 1931 return makeMessage_Widget(title,
1932 makeQuestion_Widget(title, msg, (iMenuItem[]){ { "${dlg.message.ok}", 0, 0, "message.ok" } }, 1); 1932 msg,
1933 (iMenuItem[]){ { "${dlg.message.ok}", 0, 0, "message.ok" } },
1934 1);
1935}
1936
1937iWidget *makeMessage_Widget(const char *title, const char *msg, const iMenuItem *items,
1938 size_t numItems) {
1939 iWidget *dlg = makeQuestion_Widget(title, msg, items, numItems);
1933 addAction_Widget(dlg, SDLK_ESCAPE, 0, "message.ok"); 1940 addAction_Widget(dlg, SDLK_ESCAPE, 0, "message.ok");
1934 addAction_Widget(dlg, SDLK_SPACE, 0, "message.ok"); 1941 addAction_Widget(dlg, SDLK_SPACE, 0, "message.ok");
1935 return dlg; 1942 return dlg;