From 8b3066127fd2f2a391f81920e19f9216bb598ede Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 26 Dec 2019 22:06:20 -0500 Subject: [PATCH] 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);