Commit 916337cf authored by Adrien Plazas's avatar Adrien Plazas
Browse files

Add a HdyViewSwitcherBar

parent 414f232e
......@@ -29,6 +29,7 @@ namespace Usage
public class Window : Gtk.ApplicationWindow
{
private Usage.HeaderBar header_bar;
private Hdy.ViewSwitcherBar viewswitcher_bar;
private View[] views;
public Window(Gtk.Application application)
......@@ -46,8 +47,11 @@ namespace Usage
});
var stack = new Gtk.Stack();
stack.vexpand = true;
header_bar = new Usage.HeaderBar(stack);
set_titlebar(header_bar);
viewswitcher_bar = new Hdy.ViewSwitcherBar();
viewswitcher_bar.stack = stack;
views = new View[]
{
......@@ -72,7 +76,10 @@ namespace Usage
}
});
this.add(stack);
var box = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
box.add(stack);
box.add(viewswitcher_bar);
this.add(box);
}
public Usage.HeaderBar get_header_bar()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment