diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-05-26 03:39:09 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-05-26 03:39:09 +0800 |
commit | 9ae7960ca8c3ca534ba07bb6d58b430ee9cda413 (patch) | |
tree | 552cf6c6fded80d05acaea44eeef46f7509d21ad /lib/widgets/ephy-tree-model-node.c | |
parent | c159006b08ac492649715c9a3ce55f258e199f97 (diff) | |
download | gsoc2013-epiphany-9ae7960ca8c3ca534ba07bb6d58b430ee9cda413.tar gsoc2013-epiphany-9ae7960ca8c3ca534ba07bb6d58b430ee9cda413.tar.gz gsoc2013-epiphany-9ae7960ca8c3ca534ba07bb6d58b430ee9cda413.tar.bz2 gsoc2013-epiphany-9ae7960ca8c3ca534ba07bb6d58b430ee9cda413.tar.lz gsoc2013-epiphany-9ae7960ca8c3ca534ba07bb6d58b430ee9cda413.tar.xz gsoc2013-epiphany-9ae7960ca8c3ca534ba07bb6d58b430ee9cda413.tar.zst gsoc2013-epiphany-9ae7960ca8c3ca534ba07bb6d58b430ee9cda413.zip |
Try to fix node removal problems. I cant repro crashes ... but they are
2003-05-25 Marco Pesenti Gritti <marco@it.gnome.org>
* configure.in:
* embed/ephy-favicon-cache.c: (ephy_favicon_cache_save):
* embed/ephy-history.c: (ephy_history_save), (hosts_removed_cb),
(pages_removed_cb), (unref_empty_host),
(page_removed_from_host_cb), (connect_page_removed_from_host),
(ephy_history_init), (ephy_history_add_host):
* lib/ephy-file-helpers.c: (ephy_file_save_xml):
* lib/ephy-file-helpers.h:
* lib/ephy-node.c: (callback), (ephy_node_emit_signal),
(real_remove_child), (ephy_node_dispose):
* lib/ephy-node.h:
* lib/ephy-state.c: (ephy_states_save):
* lib/widgets/ephy-tree-model-node.c: (root_child_removed_cb):
* src/bookmarks/ephy-bookmarks-export.c:
(ephy_bookmarks_export_rdf):
* src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_save),
(bookmarks_removed_cb), (topics_removed_cb):
Try to fix node removal problems. I cant repro crashes ...
but they are quite hard to reproduce.
Use a save_xml helper that is low disk safe.
* src/ephy-automation.c: (impl_ephy_automation_loadurl):
Use OPEN_PAGE when an url is passed
Diffstat (limited to 'lib/widgets/ephy-tree-model-node.c')
-rw-r--r-- | lib/widgets/ephy-tree-model-node.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/widgets/ephy-tree-model-node.c b/lib/widgets/ephy-tree-model-node.c index 73c654712..cf92167d2 100644 --- a/lib/widgets/ephy-tree-model-node.c +++ b/lib/widgets/ephy-tree-model-node.c @@ -66,6 +66,7 @@ static gboolean ephy_tree_model_node_iter_parent (GtkTreeModel *tree_model, static void ephy_tree_model_node_tree_model_init (GtkTreeModelIface *iface); static void root_child_removed_cb (EphyNode *node, EphyNode *child, + guint old_index, EphyTreeModelNode *model); static void root_child_added_cb (EphyNode *node, EphyNode *child, @@ -656,11 +657,13 @@ ephy_tree_model_node_iter_from_node (EphyTreeModelNode *model, static void root_child_removed_cb (EphyNode *node, EphyNode *child, + guint old_index, EphyTreeModelNode *model) { GtkTreePath *path; - path = get_path_real (model, child); + path = gtk_tree_path_new (); + gtk_tree_path_append_index (path, old_index); gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path); gtk_tree_path_free (path); } |