[gtk+/wip/baedert/box] docs/tools/widgets: Stop using gtk_button_set_image
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/box] docs/tools/widgets: Stop using gtk_button_set_image
- Date: Fri, 14 Oct 2016 14:05:40 +0000 (UTC)
commit bf70edc8569c9fa7c5ecf14c718546e3448d9924
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]