Added device list (panel list) to main window

master
vhaudiquet 1 year ago
parent 9423b1939b
commit e231246400
  1. 8
      src/ui/main-window.c
  2. 14
      ui/main-window.ui

@ -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);

@ -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>

Loading…
Cancel
Save