Added device list (panel list) to main window

This commit is contained in:
vhaudiquet 2023-09-18 11:33:28 +02:00
parent 9423b1939b
commit e231246400
2 changed files with 14 additions and 8 deletions

View File

@ -11,21 +11,19 @@ struct _MainWindow
AdwHeaderBar* header;
AdwLeaflet* main_leaflet;
// TODO LIST : CcPanelList *panel_list;
GtkListBox *device_list;
GtkBox* sidebar_box;
AdwWindowTitle* sidebar_title_widget;
GtkStack* stack;
// GtkWidget *old_panel;
GtkWidget* current_panel;
char* current_panel_id;
// GQueue *previous_panels;
GtkWidget* custom_titlebar;
// CcShellModel *store;
// CcPanel *active_panel;
Panel *active_panel;
GSettings* settings;
gboolean folded;
@ -233,7 +231,7 @@ main_window_class_init(MainWindowClass* klass)
gtk_widget_class_bind_template_child(widget_class, MainWindow, header);
gtk_widget_class_bind_template_child(widget_class, MainWindow, main_leaflet);
// gtk_widget_class_bind_template_child(widget_class, MainWindow, panel_list);
gtk_widget_class_bind_template_child(widget_class, MainWindow, device_list);
gtk_widget_class_bind_template_child(widget_class, MainWindow, sidebar_box);
gtk_widget_class_bind_template_child(widget_class, MainWindow, sidebar_title_widget);
gtk_widget_class_bind_template_child(widget_class, MainWindow, stack);

View File

@ -32,16 +32,24 @@
</child>
</object>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="child">
<object class="GtkViewport" />
</property>
<child>
<object class="GtkViewport">
<child>
<object class="GtkListBox" id="device_list">
</object>
</child>
</object>
</child>
<property name="hscrollbar-policy">never</property>
<property name="vexpand">True</property>
<property name="width-request">200</property>
</object>
</child>
</object>
</child>
<child>