Hiroyuki Ikezoe
ikezo****@users*****
Mon Jan 1 21:17:52 JST 2007
Index: kazehakase/src/kz-app.c diff -u kazehakase/src/kz-app.c:1.9 kazehakase/src/kz-app.c:1.10 --- kazehakase/src/kz-app.c:1.9 Mon Jan 1 19:35:14 2007 +++ kazehakase/src/kz-app.c Mon Jan 1 21:17:52 2007 @@ -134,7 +134,6 @@ gchar *accel_prefs_file; gchar *proxy_file, *sysproxy_file; gchar *search_engine; - gboolean save_session; KzAppPrivate *priv = KZ_APP_GET_PRIVATE(kzapp); priv->window_list = NULL; @@ -207,9 +206,7 @@ sys_bookmark_bar_file); kz_root_bookmark_add_current_session_file(priv->bookmarks, current_session_file); - kz_profile_get_value(priv->profile, "Session", "save", - &save_session, sizeof(gboolean), KZ_PROFILE_VALUE_TYPE_BOOL); - kz_session_set_auto_save(KZ_SESSION(priv->bookmarks->current_session), save_session); + kz_session_set_profile(KZ_SESSION(priv->bookmarks->current_session), priv->profile); /* Load other prefs... */ accel_prefs_file = g_build_filename(g_get_home_dir(), Index: kazehakase/src/kz-tab-label.c diff -u kazehakase/src/kz-tab-label.c:1.81 kazehakase/src/kz-tab-label.c:1.82 --- kazehakase/src/kz-tab-label.c:1.81 Sun Dec 31 10:59:40 2006 +++ kazehakase/src/kz-tab-label.c Mon Jan 1 21:17:52 2007 @@ -1057,18 +1057,12 @@ { GtkNotebook *note; gboolean show_favicon; - gboolean save_session = FALSE; g_return_if_fail(KZ_IS_TAB_LABEL(kztab)); kz_embed_get_history(KZ_EMBED(embed), kztab->history); - /* save session */ - KZ_CONF_GET("Session", "save", save_session, BOOL); - if (save_session && !kztab->kz->is_closing_all) - kz_bookmark_file_save(KZ_BOOKMARK_FILE(KZ_GET_CURRENT_SESSION)); - note = GTK_NOTEBOOK(kztab->kz->notebook); if(gtk_notebook_page_num(note, GTK_WIDGET(embed)) == gtk_notebook_get_current_page(note))