From b7e5a2dd100f797e5dde9f368c81588277cab374 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Sun, 8 Apr 2018 18:31:03 +0100 Subject: [PATCH] testmodelbutton: Fix wrongly overridding MB child I was setting a GtkButton:label, which resulted in the ModelButton's own custom children getting lost. That doesn't make for a useful test... https://gitlab.gnome.org/GNOME/gtk/issues/163#note_94842 --- tests/testmodelbutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testmodelbutton.c b/tests/testmodelbutton.c index 204e3caec1..1e656e548b 100644 --- a/tests/testmodelbutton.c +++ b/tests/testmodelbutton.c @@ -46,8 +46,8 @@ on_application_activate (GApplication *gapplication, model_button = g_object_new (GTK_TYPE_MODEL_BUTTON, "action-name", "app.beep", + "text", "It’s-a-me! ModelButton", NULL); - gtk_button_set_label (GTK_BUTTON (model_button), "It’s-a-me! ModelButton"); gtk_container_add (GTK_CONTAINER (box), model_button); widget = gtk_combo_box_text_new ();