svnno****@sourc*****
svnno****@sourc*****
Tue Jan 27 09:15:27 JST 2009
Revision: 3582 http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3582 Author: ikezoe Date: 2009-01-27 09:15:27 +0900 (Tue, 27 Jan 2009) Log Message: ----------- * src/kz-profile.[ch], src/kz-window.c, src/actions/kz-location-entry.c: kz_profile_set_save_each_time -> kz_profile_set_auto_save. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/src/actions/kz-location-entry-action.c kazehakase/trunk/src/kz-profile.c kazehakase/trunk/src/kz-profile.h kazehakase/trunk/src/kz-window.c kazehakase/trunk/test/test-profile.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2009-01-26 23:53:40 UTC (rev 3581) +++ kazehakase/trunk/ChangeLog 2009-01-27 00:15:27 UTC (rev 3582) @@ -2,6 +2,9 @@ * src/bookmarks/kz-session.c: Fix that auto save flag does not update when profile is changed. + * src/kz-profile.[ch], src/kz-window.c, + src/actions/kz-location-entry.c: kz_profile_set_save_each_time -> + kz_profile_set_auto_save. 2009-01-26 Hiroyuki Ikezoe <poinc****@ikezo*****> Modified: kazehakase/trunk/src/actions/kz-location-entry-action.c =================================================================== --- kazehakase/trunk/src/actions/kz-location-entry-action.c 2009-01-26 23:53:40 UTC (rev 3581) +++ kazehakase/trunk/src/actions/kz-location-entry-action.c 2009-01-27 00:15:27 UTC (rev 3582) @@ -146,9 +146,9 @@ if (action->kz) { - kz_profile_set_save_each_time(KZ_GET_GLOBAL_PROFILE, FALSE); + kz_profile_set_auto_save(KZ_GET_GLOBAL_PROFILE, FALSE); kz_location_entry_action_store_history(action); - kz_profile_set_save_each_time(KZ_GET_GLOBAL_PROFILE, TRUE); + kz_profile_set_auto_save(KZ_GET_GLOBAL_PROFILE, TRUE); g_object_unref(action->kz); action->kz = NULL; } @@ -340,9 +340,9 @@ "stock_id", GTK_STOCK_NEW, "kz-window", kz, NULL); - kz_profile_set_save_each_time(KZ_GET_GLOBAL_PROFILE, FALSE); + kz_profile_set_auto_save(KZ_GET_GLOBAL_PROFILE, FALSE); kz_location_entry_action_restore_history(action); - kz_profile_set_save_each_time(KZ_GET_GLOBAL_PROFILE, TRUE); + kz_profile_set_auto_save(KZ_GET_GLOBAL_PROFILE, TRUE); return action; } Modified: kazehakase/trunk/src/kz-profile.c =================================================================== --- kazehakase/trunk/src/kz-profile.c 2009-01-26 23:53:40 UTC (rev 3581) +++ kazehakase/trunk/src/kz-profile.c 2009-01-27 00:15:27 UTC (rev 3582) @@ -130,7 +130,7 @@ static void kz_profile_init (KzProfile *profile) { - profile->save_eachtime = TRUE; + profile->auto_save = TRUE; profile->edit = FALSE; profile->file = NULL; @@ -820,8 +820,8 @@ g_free(old_value); - if (profile->save_eachtime) - kz_profile_save (profile); + if (profile->auto_save) + kz_profile_save(profile); return TRUE; } @@ -890,8 +890,8 @@ g_free(section_tmp); - if (profile->save_eachtime) - kz_profile_save (profile); + if (profile->auto_save) + kz_profile_save(profile); return result; } @@ -946,8 +946,8 @@ g_free(section_tmp); g_free(key_tmp); - if (profile->save_eachtime) - kz_profile_save (profile); + if (profile->auto_save) + kz_profile_save(profile); return result; } @@ -1050,8 +1050,8 @@ } void -kz_profile_set_save_each_time (KzProfile *profile, gboolean save) +kz_profile_set_auto_save (KzProfile *profile, gboolean auto_save) { - profile->save_eachtime = save; + profile->auto_save = auto_save; } Modified: kazehakase/trunk/src/kz-profile.h =================================================================== --- kazehakase/trunk/src/kz-profile.h 2009-01-26 23:53:40 UTC (rev 3581) +++ kazehakase/trunk/src/kz-profile.h 2009-01-27 00:15:27 UTC (rev 3582) @@ -69,7 +69,7 @@ { GObject parent; - gboolean save_eachtime; + gboolean auto_save; gboolean edit; gchar *file, *subfile; KzProfileList *list, *sublist; @@ -237,8 +237,8 @@ const gchar *section, gboolean users_only); -void kz_profile_set_save_each_time (KzProfile *profile, - gboolean save); +void kz_profile_set_auto_save (KzProfile *profile, + gboolean auto_save); G_END_DECLS Modified: kazehakase/trunk/src/kz-window.c =================================================================== --- kazehakase/trunk/src/kz-window.c 2009-01-26 23:53:40 UTC (rev 3581) +++ kazehakase/trunk/src/kz-window.c 2009-01-27 00:15:27 UTC (rev 3582) @@ -1265,7 +1265,7 @@ g_return_if_fail(KZ_IS_WINDOW(kz)); priv = KZ_WINDOW_GET_PRIVATE(kz); - kz_profile_set_save_each_time(KZ_GET_GLOBAL_PROFILE, FALSE); + kz_profile_set_auto_save(KZ_GET_GLOBAL_PROFILE, FALSE); /* * window size */ @@ -1352,7 +1352,7 @@ } } - kz_profile_set_save_each_time(KZ_GET_GLOBAL_PROFILE, TRUE); + kz_profile_set_auto_save(KZ_GET_GLOBAL_PROFILE, TRUE); kz_profile_save(KZ_GET_GLOBAL_PROFILE); } Modified: kazehakase/trunk/test/test-profile.c =================================================================== --- kazehakase/trunk/test/test-profile.c 2009-01-26 23:53:40 UTC (rev 3581) +++ kazehakase/trunk/test/test-profile.c 2009-01-27 00:15:27 UTC (rev 3582) @@ -47,7 +47,7 @@ { profile = kz_profile_open(file_path, NULL); cut_assert(profile); - kz_profile_set_save_each_time(profile, FALSE); + kz_profile_set_auto_save(profile, FALSE); } static void