mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
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:
parent
e52aa73b36
commit
b7e5a2dd10
@ -46,8 +46,8 @@ on_application_activate (GApplication *gapplication,
|
|||||||
|
|
||||||
model_button = g_object_new (GTK_TYPE_MODEL_BUTTON,
|
model_button = g_object_new (GTK_TYPE_MODEL_BUTTON,
|
||||||
"action-name", "app.beep",
|
"action-name", "app.beep",
|
||||||
|
"text", "It’s-a-me! ModelButton",
|
||||||
NULL);
|
NULL);
|
||||||
gtk_button_set_label (GTK_BUTTON (model_button), "It’s-a-me! ModelButton");
|
|
||||||
gtk_container_add (GTK_CONTAINER (box), model_button);
|
gtk_container_add (GTK_CONTAINER (box), model_button);
|
||||||
|
|
||||||
widget = gtk_combo_box_text_new ();
|
widget = gtk_combo_box_text_new ();
|
||||||
|
Loading…
Reference in New Issue
Block a user