svnno****@sourc*****
svnno****@sourc*****
Sun Apr 15 00:12:34 JST 2007
Revision: 3188 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3188 Author: kous Date: 2007-04-15 00:12:34 +0900 (Sun, 15 Apr 2007) Log Message: ----------- * src/utils/utils.[ch] (kz_utils_complement_scheme): added kz_utils_ prefix. (kz_win32_base_path): exported always but works only when G_OS_WIN32. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/src/utils/utils.c kazehakase/trunk/src/utils/utils.h Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-04-14 15:10:28 UTC (rev 3187) +++ kazehakase/trunk/ChangeLog 2007-04-14 15:12:34 UTC (rev 3188) @@ -1,5 +1,10 @@ 2007-04-15 Kouhei Sutou <kou****@cozmi*****> + * src/utils/utils.[ch] + (kz_utils_complement_scheme): added kz_utils_ prefix. + (kz_win32_base_path): exported always but works only when + G_OS_WIN32. + * src/enum-types.mk: cleanup. * src/kz-app.[ch] (kz_app_get): added. Modified: kazehakase/trunk/src/utils/utils.c =================================================================== --- kazehakase/trunk/src/utils/utils.c 2007-04-14 15:10:28 UTC (rev 3187) +++ kazehakase/trunk/src/utils/utils.c 2007-04-14 15:12:34 UTC (rev 3188) @@ -446,7 +446,7 @@ gchar * -complement_scheme (const gchar* url) +kz_utils_complement_scheme (const gchar* url) { gchar *file; @@ -1008,7 +1008,6 @@ return system; } -#ifdef G_OS_WIN32 static gchar *win32_base_path = NULL; const gchar * @@ -1017,8 +1016,10 @@ if (win32_base_path) return win32_base_path; +#ifdef G_OS_WIN32 win32_base_path = g_win32_get_package_installation_directory(PACKAGE, NULL); +#endif + return win32_base_path; } -#endif Modified: kazehakase/trunk/src/utils/utils.h =================================================================== --- kazehakase/trunk/src/utils/utils.h 2007-04-14 15:10:28 UTC (rev 3187) +++ kazehakase/trunk/src/utils/utils.h 2007-04-14 15:12:34 UTC (rev 3188) @@ -53,7 +53,7 @@ GTime thumbnail_get_last_modified (const gchar *uri, EggPixbufThumbSize size); GTime history_get_last_modified (const gchar *uri); -gchar *complement_scheme (const gchar *url); +gchar *kz_utils_complement_scheme (const gchar *url); gchar *xml_get_content (const gchar *buffer); gchar *xml_get_attr (const gchar *buffer, const gchar *attr_name); @@ -80,9 +80,7 @@ gchar *kz_utils_get_system_name (void); -#ifdef G_OS_WIN32 const gchar *kz_win32_base_path (void); -#endif G_END_DECLS