testgtk: Fix image menu item child order
authorTimm Bäder <mail@baedert.org>
Sun, 3 Feb 2019 10:29:01 +0000 (11:29 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 4 Feb 2019 16:05:30 +0000 (17:05 +0100)
We want the image first, text second.

tests/testgtk.c

index a7a1c81f87f69790f7e2614677051bd500e4064f..bef02a00be07994a34cdbdaa6ce2f8d0fd2d29f0 100644 (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);