From 0f91c5cd6a3a8a07185e107da881ff4da71f7081 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Tue, 22 Apr 2014 19:03:36 +0200 Subject: align two buttons in LPE widget (bzr r11950.1.334) --- src/live_effects/lpe-bspline.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/live_effects/lpe-bspline.cpp b/src/live_effects/lpe-bspline.cpp index 8254a13b6..00ebcd9ba 100644 --- a/src/live_effects/lpe-bspline.cpp +++ b/src/live_effects/lpe-bspline.cpp @@ -318,20 +318,18 @@ Gtk::Widget *LPEBSpline::newWidget() { ++it; } + Gtk::HBox * buttons = Gtk::manage(new Gtk::HBox(true,0)); Gtk::Button *defaultWeight = Gtk::manage(new Gtk::Button(Glib::ustring(_("Default weight 0.3334")))); - defaultWeight->set_alignment(0.0, 0.5); defaultWeight->signal_clicked() .connect(sigc::mem_fun(*this, &LPEBSpline::toDefaultWeight)); - Gtk::Widget *defaultWeightWidget = dynamic_cast(defaultWeight); - vbox->pack_start(*defaultWeightWidget, true, true, 2); + buttons->pack_start(*defaultWeight, true, true, 2); Gtk::Button *makeCusp = Gtk::manage(new Gtk::Button(Glib::ustring(_("Make cusp")))); - makeCusp->set_alignment(0.0, 0.5); makeCusp->signal_clicked() .connect(sigc::mem_fun(*this, &LPEBSpline::toMakeCusp)); - Gtk::Widget *makeCuspWidget = dynamic_cast(makeCusp); - vbox->pack_start(*makeCuspWidget, true, true, 2); + buttons->pack_start(*makeCusp, true, true, 2); + vbox->pack_start(*buttons, true, true, 2); return dynamic_cast(vbox); } -- cgit v1.2.3