From 03f644ab1d4ddbb66a9ef332de8cc0a08e6f0de5 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 4 Apr 2009 01:32:02 +0200 Subject: [PATCH] Make sure we always save the main bookmark folder --- midori/main.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/midori/main.c b/midori/main.c index c5e8ccac..f15206a7 100644 --- a/midori/main.c +++ b/midori/main.c @@ -773,8 +773,9 @@ midori_bookmarks_add_item_cb (KatzeArray* folder, KatzeArray* bookmarks); static void -midori_bookmarks_remove_item_cb (KatzeArray* bookmarks, - GObject* item); +midori_bookmarks_remove_item_cb (KatzeArray* folder, + GObject* item, + KatzeArray* bookmarks); static void midori_bookmarks_add_item_cb (KatzeArray* folder, @@ -798,7 +799,7 @@ midori_bookmarks_add_item_cb (KatzeArray* folder, g_signal_connect_after (item, "add-item", G_CALLBACK (midori_bookmarks_add_item_cb), bookmarks); g_signal_connect_after (item, "remove-item", - G_CALLBACK (midori_bookmarks_remove_item_cb), NULL); + G_CALLBACK (midori_bookmarks_remove_item_cb), bookmarks); } g_signal_connect_after (item, "notify", @@ -806,8 +807,9 @@ midori_bookmarks_add_item_cb (KatzeArray* folder, } static void -midori_bookmarks_remove_item_cb (KatzeArray* bookmarks, - GObject* item) +midori_bookmarks_remove_item_cb (KatzeArray* folder, + GObject* item, + KatzeArray* bookmarks) { gchar* config_file; GError* error; @@ -1605,7 +1607,7 @@ main (int argc, g_signal_connect_after (bookmarks, "add-item", G_CALLBACK (midori_bookmarks_add_item_cb), bookmarks); g_signal_connect_after (bookmarks, "remove-item", - G_CALLBACK (midori_bookmarks_remove_item_cb), NULL); + G_CALLBACK (midori_bookmarks_remove_item_cb), bookmarks); if (!katze_array_is_empty (bookmarks)) { i = 0; @@ -1616,7 +1618,7 @@ main (int argc, g_signal_connect_after (item, "add-item", G_CALLBACK (midori_bookmarks_add_item_cb), bookmarks); g_signal_connect_after (item, "remove-item", - G_CALLBACK (midori_bookmarks_remove_item_cb), NULL); + G_CALLBACK (midori_bookmarks_remove_item_cb), bookmarks); } g_signal_connect_after (item, "notify", G_CALLBACK (midori_bookmarks_notify_item_cb), bookmarks); -- 2.39.5