summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 801c6c2)
raw | patch | inline | side by side (parent: 801c6c2)
author | acspike <acspike@users.sourceforge.net> | |
Wed, 19 Apr 2006 22:38:14 +0000 (22:38 +0000) | ||
committer | acspike <acspike@users.sourceforge.net> | |
Wed, 19 Apr 2006 22:38:14 +0000 (22:38 +0000) |
src/ui/dialog/document-properties.cpp | patch | blob | history |
index 5468e0b2d6de7a20298b719eb8e2f050d28f6f97..25f8e8af0422712a8df8a0da9bc884b766e8e5ec 100644 (file)
+#include <gtkmm.h>
#include "ui/widget/color-picker.h"
#include "ui/widget/scalar-unit.h"
#include "ui/widget/button.h"
"bordercolor", "borderopacity", _wr);
_rcb_shad.init (_("_Show border shadow"), _("If set, page border shows a shadow on its right and lower side"), "inkscape:showpageshadow", _wr, false);
_rum_deflt.init (_("Default _units:"), "inkscape:document-units", _wr);
+
Inkscape::UI::Widget::Button* fit_canv = manage(new Inkscape::UI::Widget::Button(_("Fit canvas to selection"),
_("Resize the canvas to fit the current selection, or the entire drawing if there is no selection")));
fit_canv->signal_clicked().connect(sigc::ptr_fun(fire_fit_canvas_to_selection_or_drawing));
+
+ // prevent fit_canv from expanding
+ Gtk::Alignment *fit_canv_cont = manage(new Gtk::Alignment(1.0,0.5,0.0,0.0));
+ fit_canv_cont->add(*fit_canv);
+
Gtk::Label* label_gen = manage (new Gtk::Label);
label_gen->set_markup (_("<b>General</b>"));
Gtk::Label* label_bor = manage (new Gtk::Label);
0, 0,
label_for, 0,
0, &_page_sizer,
- 0, fit_canv,
+ 0, fit_canv_cont,
0, 0,
label_bor, 0,
0, _rcb_canb._button,