diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-22 14:10:15 +0000 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2019-12-23 06:16:00 +0100 |
commit | 3bab9a619cf6de58ce6eef211b1f7d3846993f82 (patch) | |
tree | 24bf216e75ede1a9141e4780b95b7b2ca749cf51 /vcl | |
parent | cfe24288e43779019bf755dfdff9163e0be2e4e2 (diff) |
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@ubuntu.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); |