[Kazehakase-cvs] CVS update: kazehakase/src/bookmarks

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
Fri Jan 5 19:51:46 JST 2007


Index: kazehakase/src/bookmarks/kz-session.c
diff -u kazehakase/src/bookmarks/kz-session.c:1.11 kazehakase/src/bookmarks/kz-session.c:1.12
--- kazehakase/src/bookmarks/kz-session.c:1.11	Tue Jan  2 20:30:51 2007
+++ kazehakase/src/bookmarks/kz-session.c	Fri Jan  5 19:51:46 2007
@@ -18,7 +18,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- *  $Id: kz-session.c,v 1.11 2007/01/02 11:30:51 ikezoe Exp $
+ *  $Id: kz-session.c,v 1.12 2007/01/05 10:51:46 ikezoe Exp $
  */
 
 #include "kz-session.h"
@@ -84,7 +84,8 @@
 			     "file-type",              "XBEL",
 			     NULL);
 
-	kz_bookmark_file_initialize(KZ_BOOKMARK_FILE(session));
+	if (!g_file_test(location, G_FILE_TEST_EXISTS))
+		kz_bookmark_file_initialize(KZ_BOOKMARK_FILE(session));
 
 	return KZ_BOOKMARK(session);
 }
@@ -249,6 +250,9 @@
 static void
 kz_bookmark_remove_child (KzBookmark *bookmark, KzBookmark *child)
 {
+	if (KZ_BOOKMARK_CLASS (kz_session_parent_class)->remove_child)
+		KZ_BOOKMARK_CLASS (kz_session_parent_class)->remove_child(bookmark, child);
+
 	g_signal_handlers_disconnect_by_func
 		(child,
 		 G_CALLBACK(cb_tab_created), bookmark);
@@ -259,7 +263,6 @@
 		(child,
 		 G_CALLBACK(cb_window_notify), bookmark);
 
-	if (KZ_BOOKMARK_CLASS (kz_session_parent_class)->remove_child)
-		KZ_BOOKMARK_CLASS (kz_session_parent_class)->remove_child(bookmark, child);
+	save_session(bookmark);
 }
 


More information about the Kazehakase-cvs mailing list
Back to archive index