diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/bookmarks/ephy-node-view.c | 18 |
2 files changed, 16 insertions, 8 deletions
@@ -1,5 +1,11 @@ 2003-02-28 Marco Pesenti Gritti <marco@it.gnome.org> + * src/bookmarks/ephy-node-view.c: (ephy_node_view_sort_func): + + fix compilation + +2003-02-28 Marco Pesenti Gritti <marco@it.gnome.org> + * lib/ephy-start-here.c: (ephy_start_here_get_page): cleaner xml dump code. diff --git a/src/bookmarks/ephy-node-view.c b/src/bookmarks/ephy-node-view.c index c67d66b04..b738adc7b 100644 --- a/src/bookmarks/ephy-node-view.c +++ b/src/bookmarks/ephy-node-view.c @@ -400,17 +400,19 @@ ephy_node_view_new (EphyNode *root, static int ephy_node_view_sort_func (GtkTreeModel *model, - GtkTreeIter *a, - GtkTreeIter *b, - gpointer user_data) + GtkTreeIter *a, + GtkTreeIter *b, + gpointer user_data) { - g_return_val_if_fail (model != NULL, 0); - g_return_val_if_fail (user_data != NULL, 0); - - GList *order = (GList *) user_data; + GList *order; GList *l; int retval = 0; - + + g_return_val_if_fail (model != NULL, 0); + g_return_val_if_fail (user_data != NULL, 0); + + order = (GList *) user_data; + for (l = order; l != NULL && retval == 0; l = g_list_next (l)) { EphyTreeModelNodeColumn column = GPOINTER_TO_INT (l->data); |