summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/dlgname.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-25 12:03:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-01-25 12:43:35 +0000
commit18a0d02e076c77d2f07f01bc4ccec358661a82b3 (patch)
treeb728c518eee1df445b80541c52a0731270ba6fab /cui/source/dialogs/dlgname.cxx
parent233f3e6d71c5a4c1cdf572198a3303dcc9697be2 (diff)
some minor .ui conversion nits
ObjectNameDialog: - Lets make it resizeable. Set a "width in chars" on the edit box to make it wide enough, that way we don't have to about setting a size request in pixels ObjectTitleNameDialog - Lets make it resizeable, as above. - The original had a scrollbar, so added a scrolledwindow to it with always vertically scroll - For the textview to give it a default height, rather than using pixels I let it take its width by expand to the above edit widget width - For its height, added a non-translated text buffer with 5 blank lines and tweaked the ctor to set that as its permanent height request - GtkTextView maps to VclMultiLineEdit instead of "MultiLineEdit" its a corner case, they should be equivalent, so just changed MultiLineEdit to VclMultiLineEdit NameDialog: - width requests as above - set name_entry as the mnemonic widget of name_entry MessBox: - I set the label to be vertically centered for the resizeable case Change-Id: I9ab9eb76aa64b4d7eaf1c9a738f9c29cd7f7820b
Diffstat (limited to 'cui/source/dialogs/dlgname.cxx')
-rw-r--r--cui/source/dialogs/dlgname.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/dialogs/dlgname.cxx b/cui/source/dialogs/dlgname.cxx
index a3af8bdd0f8e..e6541bd11239 100644
--- a/cui/source/dialogs/dlgname.cxx
+++ b/cui/source/dialogs/dlgname.cxx
@@ -112,6 +112,8 @@ SvxObjectTitleDescDialog::SvxObjectTitleDescDialog(
{
get(pEdtTitle, "object_title_entry");
get(pEdtDescription, "desc_entry");
+ //lock height to initial height
+ pEdtDescription->set_height_request(pEdtDescription->get_preferred_size().Height());
// set title & desc
pEdtTitle->SetText(rTitle);
pEdtDescription->SetText(rDescription);