diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-08-05 11:13:09 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-08-14 08:45:35 +0200 |
commit | 57404333c06c3ee21efb9471a3afbc19f5254a86 (patch) | |
tree | 7191faf07473fd49f7f94ec12fdbe4ec07a92ea1 /svtools | |
parent | 02daf3c948999ae294528b05dd834072011fff71 (diff) |
Port field without buttons, max 4 chars
Change-Id: I4ddc294dba5ad66a11ff260e8942977d0a6a292f
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/ServerDetailsControls.cxx | 2 | ||||
-rw-r--r-- | svtools/uiconfig/ui/placeedit.ui | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx index e90cba270b82..3d57e29c4268 100644 --- a/svtools/source/dialogs/ServerDetailsControls.cxx +++ b/svtools/source/dialogs/ServerDetailsControls.cxx @@ -77,7 +77,7 @@ HostDetailsContainer::HostDetailsContainer( VclBuilderContainer* pBuilder, sal_u pBuilder->get( m_pEDHost, "host" ); m_pEDHost->SetModifyHdl( LINK( this, DetailsContainer, ValueChangeHdl ) ); - pBuilder->get( m_pEDPort, "port" ); + pBuilder->get( m_pEDPort, "port-nospin" ); m_pEDPort->SetModifyHdl( LINK( this, DetailsContainer, ValueChangeHdl ) ); pBuilder->get( m_pEDPath, "path" ); diff --git a/svtools/uiconfig/ui/placeedit.ui b/svtools/uiconfig/ui/placeedit.ui index 272c096917c6..4fb556b52fbb 100644 --- a/svtools/uiconfig/ui/placeedit.ui +++ b/svtools/uiconfig/ui/placeedit.ui @@ -241,7 +241,7 @@ <property name="xalign">0</property> <property name="label" translatable="yes">Port:</property> <property name="use_underline">True</property> - <property name="mnemonic_widget">port</property> + <property name="mnemonic_widget">port-nospin</property> </object> <packing> <property name="left_attach">2</property> @@ -249,10 +249,12 @@ </packing> </child> <child> - <object class="GtkSpinButton" id="port"> + <object class="GtkSpinButton" id="port-nospin"> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="max_length">4</property> <property name="invisible_char">●</property> + <property name="max_width_chars">4</property> <property name="text" translatable="yes">0</property> <property name="adjustment">adjustment1</property> <property name="numeric">True</property> |