From eeae242437aca16e9b7d6d6cc45f3e5bf90f4aaa Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Mon, 8 Jan 2007 22:53:47 +0000 Subject: Workaround/semi-fix for bug #351814. The real cause of the problem is the 2007-01-08 Diego Escalante Urrelo * src/bookmarks/ephy-bookmarks-editor.c: * lib/widgets/ephy-node-view.c: Workaround/semi-fix for bug #351814. The real cause of the problem is the user_data that is never set on a GtkTreeIter, so the Ephy implementation of the tree makes it to have a stamp of 0 being that way an invalid iter. Patch by Diego Escalante Urrelo. svn path=/trunk/; revision=6796 --- src/bookmarks/ephy-bookmarks-editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bookmarks') diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 5d637c080..b10a87bb2 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -1366,7 +1366,7 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor) EphyNode *node = selected->data; char name[EPHY_BOOKMARK_ACTION_NAME_BUFFER_SIZE]; - g_return_if_fail (node != NULL); + if (node == NULL) return; mutable = !ephy_node_get_property_boolean (node, EPHY_NODE_BMK_PROP_IMMUTABLE); -- cgit v1.2.3