summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-07-26 14:32:02 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-07-26 14:32:02 +0300
commitdeba8cc58be7511ede63d0b6417c739e8e35b176 (patch)
tree8fd4fa925a5f851c35e558b012bb003131981af7 /src/ui/window.c
parentc8a7d28f61ab53d841efe38ddcf34be0db3104d9 (diff)
Asking the user for input
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index e9ed8d61..e4ee2799 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -74,8 +74,8 @@ static const iMenuItem editMenuItems[] = {
74static const iMenuItem viewMenuItems[] = { 74static const iMenuItem viewMenuItems[] = {
75}; 75};
76 76
77static const char *reloadCStr_ = "\u25cb"; 77static const char *reloadCStr_ = "\U0001f503";
78static const char *stopCStr_ = orange_ColorEscape "\u00d7"; 78static const char *stopCStr_ = orange_ColorEscape "\U0001f310";
79 79
80static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) { 80static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
81 if (equal_Command(cmd, "input.ended")) { 81 if (equal_Command(cmd, "input.ended")) {
@@ -87,7 +87,7 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
87 } 87 }
88 else if (equal_Command(cmd, "document.changed")) { 88 else if (equal_Command(cmd, "document.changed")) {
89 iInputWidget *url = findWidget_App("url"); 89 iInputWidget *url = findWidget_App("url");
90 setTextCStr_InputWidget(url, valuePtr_Command(cmd, "url")); 90 setTextCStr_InputWidget(url, suffixPtr_Command(cmd, "url"));
91 updateTextCStr_LabelWidget(findChild_Widget(navBar, "reload"), reloadCStr_); 91 updateTextCStr_LabelWidget(findChild_Widget(navBar, "reload"), reloadCStr_);
92 return iFalse; 92 return iFalse;
93 } 93 }
@@ -100,7 +100,7 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
100 if (isFocused_Widget(as_Widget(url))) { 100 if (isFocused_Widget(as_Widget(url))) {
101 setFocus_Widget(NULL); 101 setFocus_Widget(NULL);
102 } 102 }
103 setTextCStr_InputWidget(url, valuePtr_Command(cmd, "url")); 103 setTextCStr_InputWidget(url, suffixPtr_Command(cmd, "url"));
104 updateTextCStr_LabelWidget(findChild_Widget(navBar, "reload"), stopCStr_); 104 updateTextCStr_LabelWidget(findChild_Widget(navBar, "reload"), stopCStr_);
105 return iFalse; 105 return iFalse;
106 } 106 }
@@ -139,7 +139,7 @@ static void setupUserInterface_Window(iWindow *d) {
139 139
140 addChild_Widget(navBar, iClob(new_LabelWidget(" \u25c4 ", 0, 0, "navigate.back"))); 140 addChild_Widget(navBar, iClob(new_LabelWidget(" \u25c4 ", 0, 0, "navigate.back")));
141 addChild_Widget(navBar, iClob(new_LabelWidget(" \u25ba ", 0, 0, "navigate.forward"))); 141 addChild_Widget(navBar, iClob(new_LabelWidget(" \u25ba ", 0, 0, "navigate.forward")));
142 addChild_Widget(navBar, iClob(new_LabelWidget("Home", 0, 0, "navigate.home"))); 142 addChild_Widget(navBar, iClob(new_LabelWidget("\U0001f3e0", 0, 0, "navigate.home")));
143 iInputWidget *url = new_InputWidget(0); 143 iInputWidget *url = new_InputWidget(0);
144 setId_Widget(as_Widget(url), "url"); 144 setId_Widget(as_Widget(url), "url");
145 setTextCStr_InputWidget(url, "gemini://"); 145 setTextCStr_InputWidget(url, "gemini://");