summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-04-22 17:03:36 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-04-22 17:03:36 +0000
commit0f91c5cd6a3a8a07185e107da881ff4da71f7081 (patch)
tree6f1a2672a69b46dc0223ca5f2842529ce8d58815 /src
parentupdate to trunk (diff)
downloadinkscape-0f91c5cd6a3a8a07185e107da881ff4da71f7081.tar.gz
inkscape-0f91c5cd6a3a8a07185e107da881ff4da71f7081.zip
align two buttons in LPE widget
(bzr r11950.1.334)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-bspline.cpp10
1 files changed, 4 insertions, 6 deletions
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<Gtk::Widget *>(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<Gtk::Widget *>(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<Gtk::Widget *>(vbox);
}