Kaydet (Commit) 6f60cfe2 authored tarafından Muhammet Kara's avatar Muhammet Kara

tdf#112133: Drop the Add and Remove labels

and ensure consistent height of the controls
in the first row of the Customize dialog.

Change-Id: I6c2d75b647cad7a2ead8c875afc4fd38a182eef0
Reviewed-on: https://gerrit.libreoffice.org/42233Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMuhammet Kara <muhammet.kara@pardus.org.tr>
üst 53548b8d
......@@ -150,6 +150,15 @@ SvxMenuConfigPage::SvxMenuConfigPage(vcl::Window *pParent, const SfxItemSet& rSe
if ( !bIsMenuBar )
{
// Context menus cannot be added/removed
// These height requests are needed to keep the height of
// the top level list boxes consistent for all tabs
m_pTopLevelListBox->set_height_request(
m_pPlusBtn->GetOptimalSize().Height() );
m_pCommandCategoryListBox->set_height_request(
m_pPlusBtn->GetOptimalSize().Height() );
m_pPlusBtn->Disable();
m_pMinusBtn->Disable();
m_pPlusBtn->Hide();
m_pMinusBtn->Hide();
}
......
......@@ -1175,7 +1175,7 @@ SvxConfigPage::SvxConfigPage(vcl::Window *pParent, const SfxItemSet& rSet)
//TODO: Add SvxMenuEntriesListBox into the glade catalog, and use it on the
// .ui file to get rid of the extra VCLContainer, and all these manual
// sizing and widget creation tricks.
m_pFunctions->set_width_request(aSize.Width() * 1.4);
m_pFunctions->set_width_request(aSize.Width() * 1.45);
// Make the middle buttons bigger
m_pAddCommandButton->set_height_request( m_pAddCommandButton->GetOptimalSize().Height() * 1.5 );
......
......@@ -164,6 +164,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="margin_left">6</property>
<property name="margin_right">6</property>
<property name="row_spacing">6</property>
<child>
<object class="GtkGrid">
......@@ -175,6 +177,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes" context="menuassignpage|add">Add item</property>
<property name="halign">center</property>
<property name="valign">start</property>
<property name="margin_bottom">5</property>
......@@ -188,22 +191,6 @@
<property name="top_attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="addlabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes" context="menuassignpage|addlabel">_Add</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">add</property>
<accessibility>
<relation type="label-for" target="add"/>
</accessibility>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -220,6 +207,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes" context="menuassignpage|remove">Remove item</property>
<property name="halign">center</property>
<property name="valign">end</property>
<property name="margin_bottom">5</property>
......@@ -233,22 +221,6 @@
<property name="top_attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="removelabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes" context="menuassignpage|removelabel">Remo_ve</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">remove</property>
<accessibility>
<relation type="label-for" target="remove"/>
</accessibility>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -527,6 +499,20 @@
<widget name="searchEntry"/>
</widgets>
</object>
<object class="GtkSizeGroup" id="sizegrp2">
<property name="mode">vertical</property>
<widgets>
<widget name="searchEntry"/>
<widget name="searchlabel"/>
<widget name="savein"/>
<widget name="functionbtn"/>
<widget name="categorylabel"/>
<widget name="commandcategorylist"/>
<widget name="toplevellist"/>
<widget name="plusbtn"/>
<widget name="minusbtn"/>
</widgets>
</object>
<object class="GtkMenu" id="insertmenu">
<property name="visible">True</property>
<property name="can_focus">False</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment