[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jun 3 13:30:04 UTC 2021
vcl/unx/gtk3/gtkinst.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit f13efe0199f8a879ba148f3db760fd288407d932
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jun 3 12:36:03 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jun 3 15:29:19 2021 +0200
gtk4: get menubutton picture aligned nicely
Change-Id: I4df3bfee7256a92e37d6bc887fa21ed74b615a1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116659
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 034dc5dda631..c469a06010ec 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -9346,6 +9346,8 @@ private:
gtk_box_reorder_child(m_pBox, GTK_WIDGET(m_pImage), 0);
#else
m_pImage = GTK_PICTURE(gtk_picture_new());
+ gtk_widget_set_halign(GTK_WIDGET(m_pImage), GTK_ALIGN_CENTER);
+ gtk_widget_set_valign(GTK_WIDGET(m_pImage), GTK_ALIGN_CENTER);
gtk_box_prepend(m_pBox, GTK_WIDGET(m_pImage));
#endif
gtk_widget_show(GTK_WIDGET(m_pImage));
More information about the Libreoffice-commits
mailing list