[glib/wip/menus] Fix obvious bug in the menu exporter
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/menus] Fix obvious bug in the menu exporter
- Date: Sat, 22 Oct 2011 19:23:26 +0000 (UTC)
commit c8534dea2fe7a4eacf76b972eb63c824e829201a
Author: Ryan Lortie <desrt desrt ca>
Date: Sat Oct 22 15:15:52 2011 -0400
Fix obvious bug in the menu exporter
gio/gmenuexporter.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gmenuexporter.c b/gio/gmenuexporter.c
index 9d63aa4..7912ae3 100644
--- a/gio/gmenuexporter.c
+++ b/gio/gmenuexporter.c
@@ -236,7 +236,7 @@ g_menu_exporter_menu_items_changed (GMenuModel *model,
g_sequence_remove_range (g_sequence_get_iter_at_pos (menu->item_links, position), point);
for (i = position; i < position + added; i++)
- g_sequence_append (menu->item_links, g_menu_exporter_menu_create_links (menu, i));
+ g_sequence_insert_before (point, g_menu_exporter_menu_create_links (menu, i));
if (g_menu_exporter_group_is_subscribed (menu->group))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]