@@ -36,7 +36,9 @@ public class Granite.Demo : Gtk.Application {
3636 var dialogs_view = new DialogsView (window);
3737 var application_view = new ApplicationView ();
3838
39- var main_stack = new Gtk .Stack ();
39+ var main_stack = new Gtk .Stack () {
40+ vhomogeneous = false
41+ };
4042 main_stack. add_titled (placeholder, " placeholder" , " Placeholder" );
4143 main_stack. add_titled (box_view, " box" , " Box" );
4244 main_stack. add_titled (lists_view, " lists" , " Lists" );
@@ -68,9 +70,10 @@ public class Granite.Demo : Gtk.Application {
6870 vexpand = true
6971 };
7072
71- var start_box = new Gtk .Box (VERTICAL , 0 );
72- start_box. append (start_header);
73- start_box. append (stack_sidebar);
73+ var start_box = new Granite .ToolBox () {
74+ content = stack_sidebar
75+ };
76+ start_box. add_top_bar (start_header);
7477 start_box. add_css_class (Granite . STYLE_CLASS_SIDEBAR );
7578
7679 var paned = new Gtk .Paned (Gtk . Orientation . HORIZONTAL ) {
@@ -83,7 +86,7 @@ public class Granite.Demo : Gtk.Application {
8386
8487 window. child = paned;
8588 window. set_default_size (900 , 600 );
86- window. set_size_request (750 , 500 );
89+ window. set_size_request (300 , 200 );
8790 window. titlebar = new Gtk .Grid () { visible = false };
8891 window. title = " Granite Demo" ;
8992
0 commit comments