projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
360239a
)
docs: Avoid using a menu for an example
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 27 Dec 2019 03:06:20 +0000
(22:06 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 29 Dec 2019 23:45:40 +0000
(18:45 -0500)
docs/tools/widgets.c
patch
|
blob
|
history
diff --git
a/docs/tools/widgets.c
b/docs/tools/widgets.c
index 64851863dc71d95edf7220c77763ac19f53f75d1..73b0a431fc146e331a831a9883adce63bd9ca4f0 100644
(file)
--- 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_pop
up
(GTK_MENU_BUTTON (widget), menu);
+ menu = gtk_
popover_new (NULL
);
+ gtk_menu_button_set_pop
over
(GTK_MENU_BUTTON (widget), menu);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
gtk_container_add (GTK_CONTAINER (vbox), widget);