diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-02-10 19:43:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-02-11 07:44:36 +0000 |
commit | c217359b7b3583ae4156e4c2322fe7d867eb3306 (patch) | |
tree | 54cfda179860ccbad06d7b6f86c4afb3a22551f6 | |
parent | 83eceff8e5136504106c2fd9de26543c37000085 (diff) |
set the image in the .ui instead of the .cxx
Change-Id: Id6c30fa9cad6bbfbfb4e5c1363f637868884b345
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146792
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | cui/source/options/optgdlg.cxx | 1 | ||||
-rw-r--r-- | cui/uiconfig/ui/optviewpage.ui | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 3b1f652adbcf..02801e9537c3 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -566,7 +566,6 @@ OfaViewTabPage::OfaViewTabPage(weld::Container* pPage, weld::DialogController* p m_xIconStyleLB->set_active(0); - m_xMoreIcons->set_from_icon_name("cmd/sc_additionsdialog.png"); m_xMoreIcons->connect_clicked(LINK(this, OfaViewTabPage, OnMoreIconsClick)); m_xRunGPTests->connect_clicked( LINK( this, OfaViewTabPage, OnRunGPTestClick)); } diff --git a/cui/uiconfig/ui/optviewpage.ui b/cui/uiconfig/ui/optviewpage.ui index a371f83e584a..5f0286a27531 100644 --- a/cui/uiconfig/ui/optviewpage.ui +++ b/cui/uiconfig/ui/optviewpage.ui @@ -9,6 +9,11 @@ <property name="step-increment">1</property> <property name="page-increment">10</property> </object> + <object class="GtkImage" id="image1"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="icon-name">cmd/sc_additionsdialog.png</property> + </object> <!-- n-columns=2 n-rows=1 --> <object class="GtkGrid" id="OptViewPage"> <property name="visible">True</property> @@ -450,9 +455,8 @@ <property name="can-focus">True</property> <property name="receives-default">True</property> <property name="tooltip-text" translatable="yes" context="optviewpage|btnMoreIcons">Add more icon themes via extension</property> - <child> - <placeholder/> - </child> + <property name="image">image1</property> + <property name="always-show-image">True</property> </object> <packing> <property name="left-attach">2</property> |