summaryrefslogtreecommitdiffstats
path: root/CategoriesPanel.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-01-28 04:09:06 -0200
committerHisham Muhammad <hisham@gobolinux.org>2018-02-17 15:30:15 -0200
commit187a035a769fb490318091fee2b0051d9b188ad5 (patch)
treead74fe0bfe51adb320f2f2bbb8ce45fcd335f960 /CategoriesPanel.c
parentece89b8df0db61b8caaf53679afbe00e1c2ef22f (diff)
Add support for multiple screens, switchable using Tab
Diffstat (limited to 'CategoriesPanel.c')
-rw-r--r--CategoriesPanel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/CategoriesPanel.c b/CategoriesPanel.c
index 64e9933a..9cab3e96 100644
--- a/CategoriesPanel.c
+++ b/CategoriesPanel.c
@@ -10,7 +10,6 @@ in the source distribution for its full text.
#include "AvailableMetersPanel.h"
#include "MetersPanel.h"
#include "DisplayOptionsPanel.h"
-#include "ColumnsPanel.h"
#include "ScreensPanel.h"
#include "ColorsPanel.h"
#include "AvailableColumnsPanel.h"
@@ -67,7 +66,7 @@ static void CategoriesPanel_makeColorsPage(CategoriesPanel* this) {
static void CategoriesPanel_makeScreensPage(CategoriesPanel* this) {
Panel* screens = (Panel*) ScreensPanel_new(this->settings);
- Panel* columns = (Panel*) ColumnsPanel_new(this->settings);
+ Panel* columns = (Panel*) ((ScreensPanel*)screens)->columns;
Panel* availableColumns = (Panel*) AvailableColumnsPanel_new(columns);
ScreenManager_add(this->scr, screens, 20);
ScreenManager_add(this->scr, columns, 20);

© 2014-2024 Faster IT GmbH | imprint | privacy policy