diff options
author | Rachit Gupta <rachitgupta1792@gmail.com> | 2014-07-08 22:09:30 +0530 |
---|---|---|
committer | Rachit Gupta <rachitgupta1792@gmail.com> | 2014-07-08 22:12:53 +0530 |
commit | 53b5adcbc8c03a6ec15d9abdf4ae3136315d569b (patch) | |
tree | 70bb10f43320d17e2eef25fe7c033b776e2b6865 | |
parent | f28e4bd999efc5ea2bd76b2a921efc9f89a50c7c (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
-rw-r--r-- | cui/source/options/personalization.cxx | 3 | ||||
-rw-r--r-- | cui/source/options/personalization.hxx | 1 | ||||
-rw-r--r-- | cui/uiconfig/ui/personalization_tab.ui | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 69afe3996eac..e67318a7ce0e 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 e3f40c6dd0aa..a09226e14254 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> |