[gtk+] Fix testmenubutton



commit 37c9a9aafedbc840ae63251c3aa7ede383698d63
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 26 17:47:21 2014 -0400

    Fix testmenubutton
    
    The menu model examples was messing up the order of its items.

 tests/testmenubutton.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testmenubutton.c b/tests/testmenubutton.c
index fc3e1e9..a48d7ea 100644
--- a/tests/testmenubutton.c
+++ b/tests/testmenubutton.c
@@ -141,7 +141,7 @@ int main (int argc, char **argv)
                 item = g_menu_item_new (label, NULL);
                 if (i == 3)
                   g_menu_item_set_attribute (item, "icon", "s", "preferences-desktop-locale-symbolic");
-               g_menu_insert_item (menu, i - 1, item);
+               g_menu_insert_item (menu, 0, item);
                 g_object_unref (item);
                g_free (label);
        }


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