ui/gtk/window.c

branch
newapi
changeset 411
3e91b7aff6a1
parent 410
a080c69125d1
child 413
b8e41d42f400
equal deleted inserted replaced
410:a080c69125d1 411:3e91b7aff6a1
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();

mercurial