forked from AuroraMiddleware/gtk
gtk-demo: Fix the tagged entry demo
We were using gtk_box_append on a button. Fallout from the container removal.
This commit is contained in:
parent
0fb83d7619
commit
6141c139e6
@ -469,7 +469,7 @@ demo_tagged_entry_tag_set_has_close_button (DemoTaggedEntryTag *tag,
|
|||||||
|
|
||||||
image = gtk_image_new_from_icon_name ("window-close-symbolic");
|
image = gtk_image_new_from_icon_name ("window-close-symbolic");
|
||||||
tag->button = gtk_button_new ();
|
tag->button = gtk_button_new ();
|
||||||
gtk_box_append (GTK_BOX (tag->button), image);
|
gtk_button_set_child (GTK_BUTTON (tag->button), image);
|
||||||
gtk_widget_set_halign (tag->button, GTK_ALIGN_CENTER);
|
gtk_widget_set_halign (tag->button, GTK_ALIGN_CENTER);
|
||||||
gtk_widget_set_valign (tag->button, GTK_ALIGN_CENTER);
|
gtk_widget_set_valign (tag->button, GTK_ALIGN_CENTER);
|
||||||
gtk_button_set_has_frame (GTK_BUTTON (tag->button), FALSE);
|
gtk_button_set_has_frame (GTK_BUTTON (tag->button), FALSE);
|
||||||
|
Loading…
Reference in New Issue
Block a user