[gtk] testgtk: Fix image menu item child order



commit 25e199e7b789894f020ec740ff4a9419207f6a61
Author: Timm Bäder <mail baedert org>
Date:   Sun Feb 3 11:29:01 2019 +0100

    testgtk: Fix image menu item child order
    
    We want the image first, text second.

 tests/testgtk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index a7a1c81f87..bef02a00be 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]