[gtk+/wip/baedert/box: 37/72] docs/tools/widgets: Stop using gtk_button_set_image



commit 9b601c6ab94062b3415643386720d8bce66b57a0
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 14 16:00:26 2016 +0200

    docs/tools/widgets: Stop using gtk_button_set_image

 docs/tools/widgets.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index a46fcb9..f57472f 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -150,7 +150,7 @@ create_menu_button (void)
   widget = gtk_menu_button_new ();
   image = gtk_image_new ();
   gtk_image_set_from_icon_name (GTK_IMAGE (image), "emblem-system-symbolic", GTK_ICON_SIZE_MENU);
-  gtk_button_set_image (GTK_BUTTON (widget), image);
+  gtk_container_add (GTK_CONTAINER (widget), image);
   menu = gtk_menu_new ();
   gtk_menu_button_set_popup (GTK_MENU_BUTTON (widget), menu);
 


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