[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Dec 23 05:16:45 UTC 2019
vcl/unx/gtk3/gtk3gtkinst.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 3bab9a619cf6de58ce6eef211b1f7d3846993f82
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Dec 22 14:10:15 2019 +0000
Commit: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Mon Dec 23 06:16:00 2019 +0100
ensure toolbar image widget is visible
Change-Id: If9144ab5f3c32570fda1da38e3c5fd076293205f
Reviewed-on: https://gerrit.libreoffice.org/85710
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index fb7c06b31003..766c13fb440c 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -7134,10 +7134,12 @@ public:
GtkToolItem* pItem = gtk_toolbar_get_nth_item(m_pToolbar, nIndex);
GtkWidget* pImage = nullptr;
+
if (GdkPixbuf* pixbuf = getPixbuf(rIcon))
{
pImage = gtk_image_new_from_pixbuf(pixbuf);
g_object_unref(pixbuf);
+ gtk_widget_show(pImage);
}
gtk_tool_button_set_icon_widget(GTK_TOOL_BUTTON(pItem), pImage);
More information about the Libreoffice-commits
mailing list