[gtk/kill-tree-menu: 21/52] docs: Avoid using a menu for an example
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-tree-menu: 21/52] docs: Avoid using a menu for an example
- Date: Sat, 28 Dec 2019 16:24:04 +0000 (UTC)
commit 747468714c87ca9eb91c5597e05b1362e7b24677
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 26 22:06:20 2019 -0500
docs: Avoid using a menu for an example
docs/tools/widgets.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index 64851863dc..73b0a431fc 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -152,8 +152,8 @@ create_menu_button (void)
image = gtk_image_new ();
gtk_image_set_from_icon_name (GTK_IMAGE (image), "emblem-system-symbolic");
gtk_container_add (GTK_CONTAINER (widget), image);
- menu = gtk_menu_new ();
- gtk_menu_button_set_popup (GTK_MENU_BUTTON (widget), menu);
+ menu = gtk_popover_new (NULL);
+ gtk_menu_button_set_popover (GTK_MENU_BUTTON (widget), menu);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
gtk_container_add (GTK_CONTAINER (vbox), widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]