Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/Widgets/ToolBox.vala
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class Granite.ToolBox : Gtk.Widget, Gtk.Accessible {
}
}

private static Gtk.SizeGroup top_sizegroup;

private Gtk.Box bottom_box;
private Gtk.Box top_box;
private Gtk.WindowHandle top_handle;
Expand All @@ -39,6 +41,10 @@ public class Granite.ToolBox : Gtk.Widget, Gtk.Accessible {
set_layout_manager_type (typeof (Gtk.BoxLayout));
}

static construct {
top_sizegroup = new Gtk.SizeGroup (VERTICAL);
}

construct {
var layout_manager = (Gtk.BoxLayout) get_layout_manager ();
layout_manager.orientation = VERTICAL;
Expand All @@ -50,6 +56,8 @@ public class Granite.ToolBox : Gtk.Widget, Gtk.Accessible {
child = top_box
};

top_sizegroup.add_widget (top_handle);

bottom_box = new Gtk.Box (VERTICAL, 0);
bottom_box.add_css_class ("bottom");

Expand Down