[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Dec 22 17:41:41 UTC 2019
vcl/unx/gtk3/gtk3gtkinst.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 935763841f8f4423a5afca5da15c874bee02e0d5
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Dec 22 14:10:15 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Dec 22 18:40:50 2019 +0100
ensure toolbar image widget is visible
Change-Id: If9144ab5f3c32570fda1da38e3c5fd076293205f
Reviewed-on: https://gerrit.libreoffice.org/85695
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 d8d3e09c6640..152893cad43f 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -7189,10 +7189,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