summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-07-08 22:09:30 +0530
committerJan Holesovsky <kendy@collabora.com>2014-08-14 19:43:32 +0200
commit95771f49f064ff7ff6daaee45d4716c930fd5cbb (patch)
tree406f0d9a600e1992c7530ad30ef996d17ea49843 /cui
parentd64f6d20872004da190c5ea351cd1ad255b18872 (diff)
The "Select personas installed via extensions" label is invisible by default.
The label is not shown if there are no persona extensions installed. Change-Id: I758bb7ff7f22d56bfb7fe212908f9f5f1f3e7979
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/personalization.cxx3
-rw-r--r--cui/source/options/personalization.hxx1
-rw-r--r--cui/uiconfig/ui/personalization_tab.ui3
3 files changed, 5 insertions, 2 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index b3775c8e9902..0d47b7ea493e 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -250,6 +250,8 @@ SvxPersonalizationTabPage::SvxPersonalizationTabPage( Window *pParent, const Sfx
get( m_pExtensionPersonaPreview, "persona_preview" );
+ get ( m_pExtensionLabel, "extensions_label" );
+
LoadDefaultImages();
LoadExtensionThemes();
}
@@ -371,6 +373,7 @@ void SvxPersonalizationTabPage::LoadExtensionThemes()
return;
m_pPersonaList->Show();
+ m_pExtensionLabel->Show();
for( sal_Int32 nIndex = 0; nIndex < nLength; nIndex++ )
{
diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx
index cd2fc976e713..a3fc9086cfff 100644
--- a/cui/source/options/personalization.hxx
+++ b/cui/source/options/personalization.hxx
@@ -33,6 +33,7 @@ private:
PushButton *m_pExtensionPersonaPreview; ///< Buttons to show the last 3 personas installed via extensions
ListBox* m_pPersonaList; ///< The ListBox to show the list of installed personas
OUString m_aPersonaSettings; ///< Header and footer images + color to be set in the settings.
+ FixedText *m_pExtensionLabel; ///< The "select persona installed via extensions" label
std::vector<OUString> m_vDefaultPersonaSettings;
std::vector<OUString> m_vExtensionPersonaSettings;
diff --git a/cui/uiconfig/ui/personalization_tab.ui b/cui/uiconfig/ui/personalization_tab.ui
index c76e00fef1de..f288a90937a4 100644
--- a/cui/uiconfig/ui/personalization_tab.ui
+++ b/cui/uiconfig/ui/personalization_tab.ui
@@ -151,8 +151,7 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="label1">
- <property name="visible">True</property>
+ <object class="GtkLabel" id="extensions_label">
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Or, select from the personas installed via extensions</property>