docs/tools/widgets: Stop using gtk_button_set_image

This commit is contained in:
Timm Bäder 2016-10-14 16:00:26 +02:00 committed by Benjamin Otte
parent e9a974f4f6
commit 3ddcd9ecea

View File

@ -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);