summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 479ed85)
raw | patch | inline | side by side (parent: 479ed85)
author | cilix42 <cilix42@users.sourceforge.net> | |
Fri, 5 Sep 2008 18:53:49 +0000 (18:53 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Fri, 5 Sep 2008 18:53:49 +0000 (18:53 +0000) |
src/ui/dialog/document-properties.cpp | patch | blob | history | |
src/ui/widget/page-sizer.cpp | patch | blob | history |
index a69e8858f8c0b70fca8b1845f2b6e3096ffc111e..a2d5b50ed163f61a01b154b37437de56eba62fba 100644 (file)
DocumentProperties::DocumentProperties()
: UI::Widget::Panel ("", "dialogs.documentoptions", SP_VERB_DIALOG_NAMEDVIEW),
- _page_page(1, 1), _page_guides(1, 1),
+ _page_page(1, 1, true, true), _page_guides(1, 1),
_page_snap(1, 1), _page_snap_dtls(1, 1),
//---------------------------------------------------------------
_rcb_canb(_("Show page _border"), _("If set, rectangular page border is shown"), "showborder", _wr, false),
@@ -196,9 +196,15 @@ attach_all(Gtk::Table &table, Gtk::Widget *const arr[], unsigned const n, int st
}
else
{
- if (arr[i+1])
+ if (arr[i+1]) {
+ Gtk::AttachOptions yoptions = (Gtk::AttachOptions)0;
+ if (dynamic_cast<Inkscape::UI::Widget::PageSizer*>(arr[i+1])) {
+ // only the PageSizer in Document Properties|Page should be stretched vertically
+ yoptions = Gtk::FILL|Gtk::EXPAND;
+ }
table.attach(*arr[i+1], 1, 3, r, r+1,
- Gtk::FILL|Gtk::EXPAND, (Gtk::AttachOptions)0,0,0);
+ Gtk::FILL|Gtk::EXPAND, yoptions, 0,0);
+ }
else if (arr[i])
{
Gtk::Label& label = reinterpret_cast<Gtk::Label&>(*arr[i]);
index f193f04d20fa44aa9bc65e783e7023cb6bc8eb16..15a9dc3f6550e6b95aed2fac6babb51ab3048513 100644 (file)
// _paperSizeListSelection->select(iter);
- pack_start (_paperSizeListBox, false, false, 0);
+ pack_start (_paperSizeListBox, true, true, 0);
_paperSizeListLabel.set_label(_("P_age size:"));
_paperSizeListLabel.set_use_underline();
_paperSizeListBox.pack_start (_paperSizeListLabel, false, false, 0);