diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-22 21:35:10 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-22 21:35:10 +0200 |
commit | 90443011c98a6dc8340d2c84f1e538c7a98327f2 (patch) | |
tree | 94e1522758d7b83be08144ae4bac54853fd3a277 /src/ui/sidebarwidget.c | |
parent | 1174f2e9318a58602baccdfb3e2465645d263601 (diff) |
Dialog buttons on the right
Follow typical GUI conventions by placing dialog buttons on the right edge. This leaves space for additional actions on the left.
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 5441381a..24ace92a 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -937,11 +937,12 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) | |||
937 | uiTextCaution_ColorEscape "UNSUBSCRIBE", | 937 | uiTextCaution_ColorEscape "UNSUBSCRIBE", |
938 | format_CStr("Really unsubscribe from feed\n\"%s\"?", | 938 | format_CStr("Really unsubscribe from feed\n\"%s\"?", |
939 | cstr_String(&feedBookmark->title)), | 939 | cstr_String(&feedBookmark->title)), |
940 | (const char *[]){ "Cancel", | 940 | (iMenuItem[]){ |
941 | uiTextCaution_ColorEscape "Unsubscribe" }, | 941 | { "Cancel", 0, 0, NULL }, |
942 | (const char *[]){ | 942 | { uiTextCaution_ColorEscape "Unsubscribe", |
943 | "cancel", | 943 | 0, |
944 | format_CStr("!feed.entry.unsubscribe arg:1 ptr:%p", d) }, | 944 | 0, |
945 | format_CStr("!feed.entry.unsubscribe arg:1 ptr:%p", d) } }, | ||
945 | 2); | 946 | 2); |
946 | } | 947 | } |
947 | return iTrue; | 948 | return iTrue; |
@@ -1026,9 +1027,9 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) | |||
1026 | "%s\n" uiText_ColorEscape | 1027 | "%s\n" uiText_ColorEscape |
1027 | "including its certificate and private key files?", | 1028 | "including its certificate and private key files?", |
1028 | cstr_String(&item->label)), | 1029 | cstr_String(&item->label)), |
1029 | (const char *[]){ "Cancel", | 1030 | (iMenuItem[]){ { "Cancel", 0, 0, NULL }, |
1030 | uiTextCaution_ColorEscape "Delete Identity and Files" }, | 1031 | { uiTextCaution_ColorEscape "Delete Identity and Files", |
1031 | (const char *[]){ "cancel", format_CStr("!ident.delete confirm:0 ptr:%p", d) }, | 1032 | 0, 0, format_CStr("!ident.delete confirm:0 ptr:%p", d) } }, |
1032 | 2); | 1033 | 2); |
1033 | return iTrue; | 1034 | return iTrue; |
1034 | } | 1035 | } |
@@ -1063,12 +1064,12 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) | |||
1063 | } | 1064 | } |
1064 | else if (equal_Command(cmd, "history.clear")) { | 1065 | else if (equal_Command(cmd, "history.clear")) { |
1065 | if (argLabel_Command(cmd, "confirm")) { | 1066 | if (argLabel_Command(cmd, "confirm")) { |
1066 | makeQuestion_Widget( | 1067 | makeQuestion_Widget(uiTextCaution_ColorEscape "CLEAR HISTORY", |
1067 | uiTextCaution_ColorEscape "CLEAR HISTORY", | 1068 | "Do you really want to erase the history of all visited pages?", |
1068 | "Do you really want to erase the history of all visited pages?", | 1069 | (iMenuItem[]){ { "Cancel", 0, 0, NULL }, |
1069 | (const char *[]){ "Cancel", uiTextCaution_ColorEscape "Clear History" }, | 1070 | { uiTextCaution_ColorEscape "Clear History", |
1070 | (const char *[]){ "cancel", "history.clear confirm:0" }, | 1071 | 0, 0, "history.clear confirm:0" } }, |
1071 | 2); | 1072 | 2); |
1072 | } | 1073 | } |
1073 | else { | 1074 | else { |
1074 | clear_Visited(visited_App()); | 1075 | clear_Visited(visited_App()); |