163 GtkWidget *vbox = ui_gtk_vbox_new(0); |
163 GtkWidget *vbox = ui_gtk_vbox_new(0); |
164 #ifdef UI_LIBADWAITA |
164 #ifdef UI_LIBADWAITA |
165 GtkWidget *toolbar_view = adw_toolbar_view_new(); |
165 GtkWidget *toolbar_view = adw_toolbar_view_new(); |
166 adw_toolbar_view_set_content(ADW_TOOLBAR_VIEW(toolbar_view), vbox); |
166 adw_toolbar_view_set_content(ADW_TOOLBAR_VIEW(toolbar_view), vbox); |
167 |
167 |
|
168 GtkWidget *content_box = ui_gtk_vbox_new(0); |
|
169 BOX_ADD_EXPAND(GTK_BOX(vbox), content_box); |
|
170 |
168 if(sidebar) { |
171 if(sidebar) { |
169 GtkWidget *splitview = adw_overlay_split_view_new(); |
172 GtkWidget *splitview = adw_overlay_split_view_new(); |
170 adw_application_window_set_content(ADW_APPLICATION_WINDOW(obj->widget), splitview); |
173 adw_application_window_set_content(ADW_APPLICATION_WINDOW(obj->widget), splitview); |
171 |
174 |
172 GtkWidget *sidebar_toolbar_view = adw_toolbar_view_new(); |
175 GtkWidget *sidebar_toolbar_view = adw_toolbar_view_new(); |