diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-27 11:11:41 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-27 11:11:41 +0300 |
commit | 83e14d99ba75316da265cfa5f3fd092caa1498cf (patch) | |
tree | d7711363747455b39f0c33af57228ceac650f2c6 /src/app.c | |
parent | 6b5c5ce624178c1b61c9d5b8677d1c7f8ef38286 (diff) |
Refactor: Separating UI creation and root widget from Window
Making the way for multiple roots/windows.
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -39,6 +39,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
39 | #include "ui/inputwidget.h" | 39 | #include "ui/inputwidget.h" |
40 | #include "ui/keys.h" | 40 | #include "ui/keys.h" |
41 | #include "ui/labelwidget.h" | 41 | #include "ui/labelwidget.h" |
42 | #include "ui/root.h" | ||
42 | #include "ui/sidebarwidget.h" | 43 | #include "ui/sidebarwidget.h" |
43 | #include "ui/text.h" | 44 | #include "ui/text.h" |
44 | #include "ui/util.h" | 45 | #include "ui/util.h" |
@@ -1662,7 +1663,7 @@ iBool handleCommand_App(const char *cmd) { | |||
1662 | else if (equal_Command(cmd, "hidetoolbarscroll")) { | 1663 | else if (equal_Command(cmd, "hidetoolbarscroll")) { |
1663 | d->prefs.hideToolbarOnScroll = arg_Command(cmd); | 1664 | d->prefs.hideToolbarOnScroll = arg_Command(cmd); |
1664 | if (!d->prefs.hideToolbarOnScroll) { | 1665 | if (!d->prefs.hideToolbarOnScroll) { |
1665 | showToolbars_Window(d->window, iTrue); | 1666 | showToolbars_Root(get_Root(), iTrue); |
1666 | } | 1667 | } |
1667 | return iTrue; | 1668 | return iTrue; |
1668 | } | 1669 | } |