svnno****@sourc*****
svnno****@sourc*****
Mon Mar 26 12:11:32 JST 2007
Revision: 3012 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3012 Author: kous Date: 2007-03-26 12:11:32 +0900 (Mon, 26 Mar 2007) Log Message: ----------- * src/utils/utils.c (purge_history_file_by_time_stamp): try remove empty directory. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/src/utils/utils.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-03-26 02:28:32 UTC (rev 3011) +++ kazehakase/trunk/ChangeLog 2007-03-26 03:11:32 UTC (rev 3012) @@ -1,5 +1,8 @@ 2007-03-26 Kouhei Sutou <kou****@cozmi*****> + * src/utils/utils.c (purge_history_file_by_time_stamp): try remove + empty directory. + * src/kz-window.c (kz_window_create_embed): supported default layout engine. Modified: kazehakase/trunk/src/utils/utils.c =================================================================== --- kazehakase/trunk/src/utils/utils.c 2007-03-26 02:28:32 UTC (rev 3011) +++ kazehakase/trunk/src/utils/utils.c 2007-03-26 03:11:32 UTC (rev 3012) @@ -676,6 +676,8 @@ g_stat(path, &st) == 0 && t - st.st_mtime > limit_seconds) { + gchar *dir_name; + if (search && strlen(path) > history_dir_len) { gchar *uri; @@ -688,6 +690,10 @@ } /* remove file over storage period */ g_unlink(path); + + dir_name = g_path_get_dirname(path); + g_rmdir(dir_name); /* ignore error */ + g_free(dir_name); } else {