From 68014b3ac54dab351f41f390dd482eb15ba01df0 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Mon, 15 May 2000 00:47:35 +0000 Subject: Correctly access an xmlNodePtr->content svn path=/trunk/; revision=3031 --- shell/e-shortcuts.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'shell/e-shortcuts.c') diff --git a/shell/e-shortcuts.c b/shell/e-shortcuts.c index dcc9383638..5b0d2b72ad 100644 --- a/shell/e-shortcuts.c +++ b/shell/e-shortcuts.c @@ -155,17 +155,14 @@ load_shortcuts (EShortcuts *shortcuts, shortcut_group->shortcuts = NULL; for (q = p->childs; q != NULL; q = q->next) { - xmlNode *link_node; + gchar *content; if (strcmp ((char *) q->name, "item") != 0) continue; - link_node = e_xml_get_child_by_name (q, (xmlChar *) "text"); - if (link_node == NULL) - continue; - + content = xmlNodeListGetString (doc, q->childs, 1); shortcut_group->shortcuts = g_list_prepend (shortcut_group->shortcuts, - g_strdup (link_node->content)); + g_strdup (content)); } shortcut_group->shortcuts = g_list_reverse (shortcut_group->shortcuts); @@ -514,3 +511,4 @@ e_shortcuts_get_uri (EShortcuts *shortcuts, int group_num, int num) E_MAKE_TYPE (e_shortcuts, "EShortcuts", EShortcuts, class_init, init, PARENT_TYPE) + -- cgit