testgtk: Fix image menu item child order

We want the image first, text second.
This commit is contained in:
Timm Bäder 2019-02-03 11:29:01 +01:00
parent 257df1d8b5
commit 25e199e7b7

View File

@ -1754,8 +1754,8 @@ create_menu (GdkDisplay *display, gint depth, gint length)
menuitem = gtk_menu_item_new ();
label = gtk_label_new ("Image Item");
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_container_add (GTK_CONTAINER (box), label);
gtk_container_add (GTK_CONTAINER (box), image);
gtk_container_add (GTK_CONTAINER (box), label);
gtk_container_add (GTK_CONTAINER (menuitem), box);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
gtk_widget_show (menuitem);