|
|
@@ -27,7 +27,7 @@ public class Toolbar : Gtk.Box
|
|
|
this.pack_start(make_toggle_button("app.tool", new GLib.Variant.int32(ToolType.MOVE), "tool-move"));
|
|
|
this.pack_start(make_toggle_button("app.tool", new GLib.Variant.int32(ToolType.ROTATE), "tool-rotate"));
|
|
|
var last = make_toggle_button("app.tool", new GLib.Variant.int32(ToolType.SCALE), "tool-scale");
|
|
|
- last.margin_bottom = last.margin + 8;
|
|
|
+ last.margin_bottom = last.margin_bottom + 8;
|
|
|
this.pack_start(last);
|
|
|
}
|
|
|
|
|
|
@@ -35,7 +35,7 @@ public class Toolbar : Gtk.Box
|
|
|
{
|
|
|
this.pack_start(make_toggle_button("app.snap", new GLib.Variant.int32(SnapMode.RELATIVE), "reference-local"));
|
|
|
var last = make_toggle_button("app.snap", new GLib.Variant.int32(SnapMode.ABSOLUTE), "reference-world");
|
|
|
- last.margin_bottom = last.margin + 8;
|
|
|
+ last.margin_bottom = last.margin_bottom + 8;
|
|
|
this.pack_start(last);
|
|
|
}
|
|
|
|
|
|
@@ -43,14 +43,14 @@ public class Toolbar : Gtk.Box
|
|
|
{
|
|
|
this.pack_start(make_toggle_button("app.reference-system", new GLib.Variant.int32(ReferenceSystem.LOCAL), "axis-local"));
|
|
|
var last = make_toggle_button("app.reference-system", new GLib.Variant.int32(ReferenceSystem.WORLD), "axis-world");
|
|
|
- last.margin_bottom = last.margin + 8;
|
|
|
+ last.margin_bottom = last.margin_bottom + 8;
|
|
|
this.pack_start(last);
|
|
|
}
|
|
|
|
|
|
private void add_snap_to_grid_buttons()
|
|
|
{
|
|
|
var last = make_toggle_button("app.snap-to-grid", null, "snap-to-grid");
|
|
|
- last.margin_bottom = last.margin + 8;
|
|
|
+ last.margin_bottom = last.margin_bottom + 8;
|
|
|
this.pack_start(last);
|
|
|
}
|
|
|
|
|
|
@@ -69,7 +69,12 @@ public class Toolbar : Gtk.Box
|
|
|
btn.get_style_context().add_class("image-button");
|
|
|
|
|
|
var img = new Gtk.Image.from_icon_name(icon_name, icon_size);
|
|
|
- img.margin = 8;
|
|
|
+ img.margin_bottom
|
|
|
+ = img.margin_end
|
|
|
+ = img.margin_start
|
|
|
+ = img.margin_top
|
|
|
+ = 8
|
|
|
+ ;
|
|
|
btn.add(img);
|
|
|
|
|
|
return btn;
|