testscrolledwindow: GtkMenuButton != GtkContainer

It's not anymore, so don't cast it to one... Use the new :label instead.
This commit is contained in:
Daniel Boles 2019-05-21 21:19:40 +01:00
parent 49d994ddc2
commit 037454d904

View File

@ -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);