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; AdwHeaderBar* header;
AdwLeaflet* main_leaflet; AdwLeaflet* main_leaflet;
// TODO LIST : CcPanelList *panel_list; GtkListBox *device_list;
GtkBox* sidebar_box; GtkBox* sidebar_box;
AdwWindowTitle* sidebar_title_widget; AdwWindowTitle* sidebar_title_widget;
GtkStack* stack; GtkStack* stack;
// GtkWidget *old_panel;
GtkWidget* current_panel; GtkWidget* current_panel;
char* current_panel_id; char* current_panel_id;
// GQueue *previous_panels;
GtkWidget* custom_titlebar; GtkWidget* custom_titlebar;
// CcShellModel *store; // CcShellModel *store;
// CcPanel *active_panel; Panel *active_panel;
GSettings* settings; GSettings* settings;
gboolean folded; 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, header);
gtk_widget_class_bind_template_child(widget_class, MainWindow, main_leaflet); 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_box);
gtk_widget_class_bind_template_child(widget_class, MainWindow, sidebar_title_widget); gtk_widget_class_bind_template_child(widget_class, MainWindow, sidebar_title_widget);
gtk_widget_class_bind_template_child(widget_class, MainWindow, stack); gtk_widget_class_bind_template_child(widget_class, MainWindow, stack);

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

Loading…
Cancel
Save