Hiroyuki Ikezoe
ikezo****@users*****
Tue Jan 2 18:23:47 JST 2007
Index: kazehakase/src/bookmarks/kz-session.c diff -u kazehakase/src/bookmarks/kz-session.c:1.7 kazehakase/src/bookmarks/kz-session.c:1.8 --- kazehakase/src/bookmarks/kz-session.c:1.7 Tue Jan 2 09:26:37 2007 +++ kazehakase/src/bookmarks/kz-session.c Tue Jan 2 18:23:47 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.7 2007/01/02 00:26:37 ikezoe Exp $ + * $Id: kz-session.c,v 1.8 2007/01/02 09:23:47 ikezoe Exp $ */ #include "kz-session.h" @@ -137,14 +137,12 @@ "file-type", "XBEL", NULL); - if (g_file_test(location, G_FILE_TEST_EXISTS)) - kz_bookmark_file_load(KZ_BOOKMARK_FILE(session)); - else - kz_bookmark_file_initialize(KZ_BOOKMARK_FILE(session)); + kz_bookmark_file_initialize(KZ_BOOKMARK_FILE(session)); return KZ_BOOKMARK(session); } + void kz_session_set_auto_save (KzSession *session, gboolean auto_save) { @@ -172,12 +170,12 @@ void kz_session_set_profile (KzSession *session, KzProfile *profile) { - gboolean save_session; + gboolean auto_save; KzSessionPrivate *priv = KZ_SESSION_GET_PRIVATE(session); kz_profile_get_value(profile, "Session", "save", - &save_session, sizeof(gboolean), KZ_PROFILE_VALUE_TYPE_BOOL); - priv->auto_save = save_session; + &auto_save, sizeof(gboolean), KZ_PROFILE_VALUE_TYPE_BOOL); + priv->auto_save = auto_save; g_signal_connect(profile, "changed::Session", G_CALLBACK(cb_profile_changed), session); @@ -193,10 +191,10 @@ if (key && strcmp(key, "save")) { - gboolean save_session; + gboolean auto_save; kz_profile_get_value(profile, "Session", "save", - &save_session, sizeof(gboolean), KZ_PROFILE_VALUE_TYPE_BOOL); - priv->auto_save = save_session; + &auto_save, sizeof(gboolean), KZ_PROFILE_VALUE_TYPE_BOOL); + priv->auto_save = auto_save; } }