diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-01-22 18:44:34 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-01-23 19:30:47 -0500 |
commit | f3f5a896de2ce9bb7661ae70ce7cd69d19299994 (patch) | |
tree | e39b26f47952d02203627caf8042ba8a87df177b /gtk/gtkmodelmenuitem.c | |
parent | 883d5d858405706d9a747acf9cc5f8c9f335ad4f (diff) | |
download | gtk+-f3f5a896de2ce9bb7661ae70ce7cd69d19299994.tar.gz |
box: Avoid position in the reorder api
Change the reorder api to insert after a sibling,
so that moving to first place becomes reorder (... NULL).
And add a insert_after api that can replace the common
container_add / reorder_after (... NULL) combination.
Update all callers.
Diffstat (limited to 'gtk/gtkmodelmenuitem.c')
-rw-r--r-- | gtk/gtkmodelmenuitem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c index ffa8ad9635..5d7637219f 100644 --- a/gtk/gtkmodelmenuitem.c +++ b/gtk/gtkmodelmenuitem.c @@ -191,8 +191,7 @@ gtk_model_menu_item_set_icon (GtkModelMenuItem *item, image = gtk_image_new_from_gicon (icon); gtk_image_set_pixel_size (GTK_IMAGE (image), 16); - gtk_container_add (GTK_CONTAINER (child), image); - gtk_box_reorder_child (GTK_BOX (child), image, 0); + gtk_box_insert_child_after (GTK_BOX (child), image, NULL); } g_object_notify (G_OBJECT (item), "icon"); |