[gtk+] button: show() the image in gtk_button_new_from_icon_name



commit d7df4916560e39664f227d6b0e67d422f44b5c4c
Author: Timm Bäder <mail baedert org>
Date:   Sat Oct 29 22:05:18 2016 +0200

    button: show() the image in gtk_button_new_from_icon_name

 gtk/gtkbutton.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index fac2984..b46eabe 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -664,9 +664,6 @@ gtk_button_new_with_label (const gchar *label)
  * displayed instead. If the current icon theme is changed, the icon
  * will be updated appropriately.
  *
- * This function is a convenience wrapper around gtk_button_new() and
- * gtk_button_set_image().
- *
  * Returns: a new #GtkButton displaying the themed icon
  *
  * Since: 3.10
@@ -680,6 +677,7 @@ gtk_button_new_from_icon_name (const gchar *icon_name,
 
   image = gtk_image_new_from_icon_name (icon_name, size);
   button =  g_object_new (GTK_TYPE_BUTTON, NULL);
+  gtk_widget_show (image);
   gtk_container_add (GTK_CONTAINER (button), image);
 
   return button;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]