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/ui/sidebarwidget.c | |
parent | 6b5c5ce624178c1b61c9d5b8677d1c7f8ef38286 (diff) |
Refactor: Separating UI creation and root widget from Window
Making the way for multiple roots/windows.
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 5aa17140..683f6436 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -36,6 +36,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
36 | #include "listwidget.h" | 36 | #include "listwidget.h" |
37 | #include "keys.h" | 37 | #include "keys.h" |
38 | #include "paint.h" | 38 | #include "paint.h" |
39 | #include "root.h" | ||
39 | #include "scrollwidget.h" | 40 | #include "scrollwidget.h" |
40 | #include "util.h" | 41 | #include "util.h" |
41 | #include "visited.h" | 42 | #include "visited.h" |
@@ -708,7 +709,7 @@ static void itemClicked_SidebarWidget_(iSidebarWidget *d, const iSidebarItem *it | |||
708 | const iGmDocument *doc = document_DocumentWidget(document_App()); | 709 | const iGmDocument *doc = document_DocumentWidget(document_App()); |
709 | const iGmHeading *head = constAt_Array(headings_GmDocument(doc), item->id); | 710 | const iGmHeading *head = constAt_Array(headings_GmDocument(doc), item->id); |
710 | postCommandf_App("document.goto loc:%p", head->text.start); | 711 | postCommandf_App("document.goto loc:%p", head->text.start); |
711 | dismissPortraitPhoneSidebars_Window(get_Window()); | 712 | dismissPortraitPhoneSidebars_Root(get_Root()); |
712 | break; | 713 | break; |
713 | } | 714 | } |
714 | case feeds_SidebarMode: { | 715 | case feeds_SidebarMode: { |