From 037454d9049205503aa1d2d48416b6be444c909d Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Tue, 21 May 2019 21:19:40 +0100 Subject: [PATCH] testscrolledwindow: GtkMenuButton != GtkContainer It's not anymore, so don't cast it to one... Use the new :label instead. --- tests/testscrolledwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testscrolledwindow.c b/tests/testscrolledwindow.c index 530dd0b1a9..4bfbbcd8e7 100644 --- a/tests/testscrolledwindow.c +++ b/tests/testscrolledwindow.c @@ -217,7 +217,7 @@ scrollable_policy (void) widget = gtk_menu_button_new (); 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); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);