[glib/wip/menus: 39/61] Fix obvious bug in the menu exporter
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/menus: 39/61] Fix obvious bug in the menu exporter
- Date: Thu, 17 Nov 2011 23:37:59 +0000 (UTC)
commit b91ab5d9d24965c2c7515dbfa36ca9730d5095e1
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]