[Libreoffice-commits] core.git: sfx2/source sfx2/uiconfig

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Mar 4 12:14:53 UTC 2021


 sfx2/source/sidebar/DeckTitleBar.cxx  |    2 +-
 sfx2/source/sidebar/PanelTitleBar.cxx |    4 ++--
 sfx2/uiconfig/ui/decktitlebar.ui      |    2 +-
 sfx2/uiconfig/ui/paneltitlebar.ui     |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit cccc98921e04bd16651b8ff92f82ff9073a1b12c
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Mar 4 10:41:37 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Mar 4 13:14:13 2021 +0100

    master slide panel shouldn't have "more options" button
    
    default the toolbox to hidden and show it if "more options" is enabled
    
    Change-Id: I6ff867268809d949e7854e0e76d3e45c8806797b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111953
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/source/sidebar/DeckTitleBar.cxx b/sfx2/source/sidebar/DeckTitleBar.cxx
index 91d95d69f264..59e9aa0db6c8 100644
--- a/sfx2/source/sidebar/DeckTitleBar.cxx
+++ b/sfx2/source/sidebar/DeckTitleBar.cxx
@@ -119,7 +119,7 @@ void DeckTitleBar::SetCloserVisible (const bool bIsCloserVisible)
 
     mbIsCloserVisible = bIsCloserVisible;
 
-    mxToolBox->set_item_visible("button", mbIsCloserVisible);
+    mxToolBox->set_visible(mbIsCloserVisible);
 }
 
 void DeckTitleBar::HandleToolBoxItemClick()
diff --git a/sfx2/source/sidebar/PanelTitleBar.cxx b/sfx2/source/sidebar/PanelTitleBar.cxx
index 7f2ff3214722..ddde9ca7aa6f 100644
--- a/sfx2/source/sidebar/PanelTitleBar.cxx
+++ b/sfx2/source/sidebar/PanelTitleBar.cxx
@@ -91,7 +91,7 @@ void PanelTitleBar::SetMoreOptionsCommand(const OUString& rsCommandName,
         return;
 
     if (!msMoreOptionsCommand.isEmpty())
-        mxToolBox->set_item_visible(msIdent, false);
+        mxToolBox->hide();
 
     msMoreOptionsCommand = rsCommandName;
 
@@ -108,7 +108,7 @@ void PanelTitleBar::SetMoreOptionsCommand(const OUString& rsCommandName,
         ControllerFactory::CreateToolBoxController(
             *mxToolBox, *m_xBuilder, msMoreOptionsCommand, rxFrame, rxController, true);
 
-    mxToolBox->set_item_visible(msIdent, true);
+    mxToolBox->show();
 }
 
 void PanelTitleBar::HandleToolBoxItemClick()
diff --git a/sfx2/uiconfig/ui/decktitlebar.ui b/sfx2/uiconfig/ui/decktitlebar.ui
index bbfcba7bf69b..8c34a7d5b415 100644
--- a/sfx2/uiconfig/ui/decktitlebar.ui
+++ b/sfx2/uiconfig/ui/decktitlebar.ui
@@ -52,8 +52,8 @@
     </child>
     <child>
       <object class="GtkToolbar" id="toolbar">
-        <property name="visible">True</property>
         <property name="can-focus">False</property>
+        <property name="no-show-all">True</property>
         <property name="toolbar-style">icons</property>
         <property name="show-arrow">False</property>
         <property name="icon_size">2</property>
diff --git a/sfx2/uiconfig/ui/paneltitlebar.ui b/sfx2/uiconfig/ui/paneltitlebar.ui
index 2e352bf21a4f..eac7c877cf2e 100644
--- a/sfx2/uiconfig/ui/paneltitlebar.ui
+++ b/sfx2/uiconfig/ui/paneltitlebar.ui
@@ -59,8 +59,8 @@
     </child>
     <child>
       <object class="GtkToolbar" id="toolbar">
-        <property name="visible">True</property>
         <property name="can-focus">False</property>
+        <property name="no-show-all">True</property>
         <property name="toolbar-style">icons</property>
         <property name="show-arrow">False</property>
         <property name="icon_size">2</property>


More information about the Libreoffice-commits mailing list