mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
testscrolledwindow: GtkMenuButton != GtkContainer
It's not anymore, so don't cast it to one... Use the new :label instead.
This commit is contained in:
parent
49d994ddc2
commit
037454d904
@ -217,7 +217,7 @@ scrollable_policy (void)
|
|||||||
|
|
||||||
widget = gtk_menu_button_new ();
|
widget = gtk_menu_button_new ();
|
||||||
gtk_menu_button_set_popover (GTK_MENU_BUTTON (widget), popover);
|
gtk_menu_button_set_popover (GTK_MENU_BUTTON (widget), popover);
|
||||||
gtk_container_add (GTK_CONTAINER (widget), gtk_label_new ("Popover"));
|
gtk_menu_button_set_label (GTK_MENU_BUTTON (widget), "Popover");
|
||||||
gtk_container_add (GTK_CONTAINER (cntl), widget);
|
gtk_container_add (GTK_CONTAINER (cntl), widget);
|
||||||
|
|
||||||
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
|
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
|
||||||
|
Loading…
Reference in New Issue
Block a user