[Libreoffice-commits] .: cui/source cui/uiconfig

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Dec 6 02:20:42 PST 2012


 cui/source/options/personalization.cxx |   12 ++++++++++++
 cui/uiconfig/ui/personalization_tab.ui |    2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

New commits:
commit 1d3a86cfb11b3490806444e70683a8fa1fa1487d
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Thu Dec 6 11:19:37 2012 +0100

    Personas: Hide the Persona UI on non-Windows.
    
    Change-Id: I6b2c9a33cb1c2144eb42a577071ade5b44b38964

diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 562b7b4..b33acae 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -106,6 +106,18 @@ SvxPersonalizationTabPage::SvxPersonalizationTabPage( Window *pParent, const Sfx
 
     get( m_pSelectPersona, "select_persona" );
     m_pSelectPersona->SetClickHdl( LINK( this, SvxPersonalizationTabPage, SelectPersona ) );
+
+#ifndef __WIN32__
+    // so far available for Windows only
+    Window *pWindow;
+    get( pWindow, "personas_label" );
+    pWindow->Hide();
+
+    m_pNoPersona->Hide();
+    m_pDefaultPersona->Hide();
+    m_pOwnPersona->Hide();
+    m_pSelectPersona->Hide();
+#endif
 }
 
 SvxPersonalizationTabPage::~SvxPersonalizationTabPage()
diff --git a/cui/uiconfig/ui/personalization_tab.ui b/cui/uiconfig/ui/personalization_tab.ui
index 12acf49..f6f11be 100644
--- a/cui/uiconfig/ui/personalization_tab.ui
+++ b/cui/uiconfig/ui/personalization_tab.ui
@@ -216,7 +216,7 @@
           </object>
         </child>
         <child type="label">
-          <object class="GtkLabel" id="label1">
+          <object class="GtkLabel" id="personas_label">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="label" translatable="yes">Firefox Personas</property>


More information about the Libreoffice-commits mailing list