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
This commit is contained in:
Daniel Boles 2018-04-08 18:31:03 +01:00
parent e52aa73b36
commit b7e5a2dd10

View File

@ -46,8 +46,8 @@ on_application_activate (GApplication *gapplication,
model_button = g_object_new (GTK_TYPE_MODEL_BUTTON,
"action-name", "app.beep",
"text", "Its-a-me! ModelButton",
NULL);
gtk_button_set_label (GTK_BUTTON (model_button), "Its-a-me! ModelButton");
gtk_container_add (GTK_CONTAINER (box), model_button);
widget = gtk_combo_box_text_new ();