aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks-ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-ui.c')
-rw-r--r--src/bookmarks/ephy-bookmarks-ui.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bookmarks/ephy-bookmarks-ui.c b/src/bookmarks/ephy-bookmarks-ui.c
index 63f6d9df1..f560e1f56 100644
--- a/src/bookmarks/ephy-bookmarks-ui.c
+++ b/src/bookmarks/ephy-bookmarks-ui.c
@@ -412,10 +412,9 @@ ephy_bookmarks_ui_detach_window (EphyWindow *window)
static void
properties_dialog_destroy_cb (EphyBookmarkProperties *dialog,
- gpointer user_data)
+ EphyNode *bookmark)
{
- g_hash_table_remove (properties_dialogs,
- ephy_bookmark_properties_get_node (dialog));
+ g_hash_table_remove (properties_dialogs, bookmark);
}
void
@@ -437,7 +436,7 @@ ephy_bookmarks_ui_add_bookmark (const char *location,
dialog = ephy_bookmark_properties_new (bookmarks, bookmark, TRUE);
g_signal_connect (dialog, "destroy",
- G_CALLBACK (properties_dialog_destroy_cb), bookmarks);
+ G_CALLBACK (properties_dialog_destroy_cb), bookmark);
g_hash_table_insert (properties_dialogs,
bookmark, dialog);
@@ -661,7 +660,7 @@ ephy_bookmarks_ui_show_bookmark (EphyNode *bookmark)
dialog = ephy_bookmark_properties_new (bookmarks, bookmark, FALSE);
g_signal_connect (dialog, "destroy",
- G_CALLBACK (properties_dialog_destroy_cb), bookmarks);
+ G_CALLBACK (properties_dialog_destroy_cb), bookmark);
g_hash_table_insert (properties_dialogs,
bookmark, dialog);
}