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-26 20:13:09 -0300
commitb815e4c7a3cdcc64e3c5a28414ef2450bc9d5ebd (patch)
tree664a7c3d8366b13e48410cd11df55aa0ccd641a3 /CategoriesPanel.c
parent4791050ceaf24a32e08505015faf07c43580763c (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