diff options
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index ea4d81ec..1eb0161b 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -138,9 +138,9 @@ static const iMenuItem viewMenuItems[] = { | |||
138 | { "Show Page Outline", '4', KMOD_PRIMARY, "sidebar.mode arg:3 toggle:1" }, | 138 | { "Show Page Outline", '4', KMOD_PRIMARY, "sidebar.mode arg:3 toggle:1" }, |
139 | { "Toggle Sidebar", SDLK_l, KMOD_PRIMARY | KMOD_SHIFT, "sidebar.toggle" }, | 139 | { "Toggle Sidebar", SDLK_l, KMOD_PRIMARY | KMOD_SHIFT, "sidebar.toggle" }, |
140 | { "---", 0, 0, NULL }, | 140 | { "---", 0, 0, NULL }, |
141 | { "Go Back", SDLK_LEFTBRACKET, KMOD_PRIMARY, "navigate.back" }, | 141 | { "Go Back", navigateBack_KeyShortcut, "navigate.back" }, |
142 | { "Go Forward", SDLK_RIGHTBRACKET, KMOD_PRIMARY, "navigate.forward" }, | 142 | { "Go Forward", navigateForward_KeyShortcut, "navigate.forward" }, |
143 | { "Reload Page", 'r', KMOD_PRIMARY, "navigate.reload" }, | 143 | { "Reload Page", reload_KeyShortcut, "navigate.reload" }, |
144 | { "---", 0, 0, NULL }, | 144 | { "---", 0, 0, NULL }, |
145 | { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, | 145 | { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, |
146 | { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, | 146 | { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, |
@@ -405,7 +405,7 @@ static void setupUserInterface_Window(iWindow *d) { | |||
405 | addChildPos_Widget(content, iClob(sidebar), front_WidgetAddPos); | 405 | addChildPos_Widget(content, iClob(sidebar), front_WidgetAddPos); |
406 | } | 406 | } |
407 | /* Search bar. */ { | 407 | /* Search bar. */ { |
408 | iWidget *searchBar = new_Widget(); | 408 | iWidget *searchBar = new_Widget(); |
409 | setId_Widget(searchBar, "search"); | 409 | setId_Widget(searchBar, "search"); |
410 | setFlags_Widget(searchBar, | 410 | setFlags_Widget(searchBar, |
411 | hidden_WidgetFlag | collapse_WidgetFlag | arrangeHeight_WidgetFlag | | 411 | hidden_WidgetFlag | collapse_WidgetFlag | arrangeHeight_WidgetFlag | |
@@ -483,7 +483,7 @@ void init_Window(iWindow *d, iRect rect) { | |||
483 | d->isDrawFrozen = iTrue; | 483 | d->isDrawFrozen = iTrue; |
484 | uint32_t flags = SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI; | 484 | uint32_t flags = SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI; |
485 | #if defined (ENABLE_SWRENDER) | 485 | #if defined (ENABLE_SWRENDER) |
486 | SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software"); | 486 | SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software"); |
487 | #elif defined (iPlatformApple) | 487 | #elif defined (iPlatformApple) |
488 | SDL_SetHint(SDL_HINT_RENDER_DRIVER, "metal"); | 488 | SDL_SetHint(SDL_HINT_RENDER_DRIVER, "metal"); |
489 | #else | 489 | #else |
@@ -499,7 +499,7 @@ void init_Window(iWindow *d, iRect rect) { | |||
499 | SDL_SetWindowPosition(d->win, left_Rect(rect), top_Rect(rect)); | 499 | SDL_SetWindowPosition(d->win, left_Rect(rect), top_Rect(rect)); |
500 | } | 500 | } |
501 | SDL_SetWindowMinimumSize(d->win, 400, 250); | 501 | SDL_SetWindowMinimumSize(d->win, 400, 250); |
502 | SDL_SetWindowTitle(d->win, "Lagrange"); | 502 | SDL_SetWindowTitle(d->win, "Lagrange"); |
503 | /* Some info. */ { | 503 | /* Some info. */ { |
504 | SDL_RendererInfo info; | 504 | SDL_RendererInfo info; |
505 | SDL_GetRendererInfo(d->render, &info); | 505 | SDL_GetRendererInfo(d->render, &info); |
@@ -692,7 +692,7 @@ void setFreezeDraw_Window(iWindow *d, iBool freezeDraw) { | |||
692 | d->isDrawFrozen = freezeDraw; | 692 | d->isDrawFrozen = freezeDraw; |
693 | } | 693 | } |
694 | 694 | ||
695 | void setCursor_Window(iWindow *d, int cursor) { | 695 | void setCursor_Window(iWindow *d, int cursor) { |
696 | if (!d->cursors[cursor]) { | 696 | if (!d->cursors[cursor]) { |
697 | d->cursors[cursor] = SDL_CreateSystemCursor(cursor); | 697 | d->cursors[cursor] = SDL_CreateSystemCursor(cursor); |
698 | } | 698 | } |