[gtk+] docs/tools/widgets: Stop using gtk_button_set_image



commit 3ddcd9eceaa4ea611ea028c5e55c51149791c8ba
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]