[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Wed Jun 20 19:57:23 UTC 2018
vcl/unx/gtk3/gtk3gtkinst.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 02e5afcea007365714b57e09b079ad0acca6e99d
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Jun 20 15:31:50 2018 +0100
show down arrow in GtkMenuButtons
Change-Id: I6468474110adfc477927f6d89b44e92d29384484
Reviewed-on: https://gerrit.libreoffice.org/56164
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 05035bb756ad..cb5ab02cee52 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -4708,6 +4708,13 @@ private:
}
if (gtk_button_get_use_underline(pButton) && !gtk_button_get_use_stock(pButton))
m_aMnemonicButtons.push_back(pButton);
+
+ if (GTK_IS_MENU_BUTTON(pWidget))
+ {
+ gtk_button_set_image(pButton, gtk_image_new_from_icon_name ("pan-down-symbolic", GTK_ICON_SIZE_BUTTON));
+ gtk_button_set_image_position(pButton, GTK_POS_RIGHT);
+ gtk_button_set_always_show_image(pButton, true);
+ }
}
else if (GTK_IS_LABEL(pWidget))
{
More information about the Libreoffice-commits
mailing list