summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index af9b20ba..637174b4 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -225,8 +225,6 @@ static const iMenuItem phoneNavMenuItems_[] = {
225 { "List Feed Entries", 0, 0, "!open url:about:feeds" }, 225 { "List Feed Entries", 0, 0, "!open url:about:feeds" },
226 { "---", 0, 0, NULL }, 226 { "---", 0, 0, NULL },
227 { gear_Icon " Settings...", SDLK_COMMA, KMOD_PRIMARY, "preferences" }, 227 { gear_Icon " Settings...", SDLK_COMMA, KMOD_PRIMARY, "preferences" },
228 { "Help", SDLK_F1, 0, "!open url:about:help" },
229 { "Release Notes", 0, 0, "!open url:about:version" },
230}; 228};
231#endif /* AppleMobile */ 229#endif /* AppleMobile */
232#endif 230#endif
@@ -466,7 +464,7 @@ static void updatePadding_Window_(iWindow *d) {
466#endif 464#endif
467} 465}
468 466
469static void dismissPortraitPhoneSidebars_(void) { 467void dismissPortraitPhoneSidebars_Window(iWindow *d) {
470 if (deviceType_App() == phone_AppDeviceType && isPortrait_App()) { 468 if (deviceType_App() == phone_AppDeviceType && isPortrait_App()) {
471 iWidget *sidebar = findWidget_App("sidebar"); 469 iWidget *sidebar = findWidget_App("sidebar");
472 iWidget *sidebar2 = findWidget_App("sidebar2"); 470 iWidget *sidebar2 = findWidget_App("sidebar2");
@@ -621,7 +619,7 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
621 postCommand_App("visited.changed"); /* sidebar will update */ 619 postCommand_App("visited.changed"); /* sidebar will update */
622 setText_InputWidget(url, urlStr); 620 setText_InputWidget(url, urlStr);
623 checkLoadAnimation_Window_(get_Window()); 621 checkLoadAnimation_Window_(get_Window());
624 dismissPortraitPhoneSidebars_(); 622 dismissPortraitPhoneSidebars_Window(get_Window());
625 updateNavBarIdentity_(navBar); 623 updateNavBarIdentity_(navBar);
626 /* Icon updates should be limited to automatically chosen icons if the user 624 /* Icon updates should be limited to automatically chosen icons if the user
627 is allowed to pick their own in the future. */ 625 is allowed to pick their own in the future. */
@@ -639,7 +637,7 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
639 iInputWidget *url = findChild_Widget(navBar, "url"); 637 iInputWidget *url = findChild_Widget(navBar, "url");
640 setTextCStr_InputWidget(url, suffixPtr_Command(cmd, "url")); 638 setTextCStr_InputWidget(url, suffixPtr_Command(cmd, "url"));
641 checkLoadAnimation_Window_(get_Window()); 639 checkLoadAnimation_Window_(get_Window());
642 dismissPortraitPhoneSidebars_(); 640 dismissPortraitPhoneSidebars_Window(get_Window());
643 return iFalse; 641 return iFalse;
644 } 642 }
645 } 643 }