Revision: 3151 http://geany.svn.sourceforge.net/geany/?rev=3151&view=rev Author: eht16 Date: 2008-10-25 18:56:04 +0000 (Sat, 25 Oct 2008)
Log Message: ----------- Fix deprecated usage of g_win32_get_package_installation_directory(), pass NULL as package name.
Modified Paths: -------------- trunk/ChangeLog trunk/src/main.c trunk/src/plugins.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-10-25 18:55:51 UTC (rev 3150) +++ trunk/ChangeLog 2008-10-25 18:56:04 UTC (rev 3151) @@ -1,3 +1,10 @@ +2008-10-25 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/main.c, src/plugins.c: + Fix deprecated usage of g_win32_get_package_installation_directory(), + pass NULL as package name. + + 2008-10-24 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* THANKS: Added Roland Baudin to list of contributors of translations.
Modified: trunk/src/main.c =================================================================== --- trunk/src/main.c 2008-10-25 18:55:51 UTC (rev 3150) +++ trunk/src/main.c 2008-10-25 18:56:04 UTC (rev 3151) @@ -392,7 +392,7 @@ #ifdef G_OS_WIN32 /* use the installation directory(the one where geany.exe is located) as the base for the * documentation and data files */ - gchar *install_dir = g_win32_get_package_installation_directory("geany", NULL); + gchar *install_dir = g_win32_get_package_installation_directory(NULL, NULL);
data_dir = g_strconcat(install_dir, "\data", NULL); /* e.g. C:\Program Files\geany\data */ doc_dir = g_strconcat(install_dir, "\doc", NULL); @@ -422,7 +422,7 @@ #endif
#ifdef G_OS_WIN32 - gchar *install_dir = g_win32_get_package_installation_directory("geany", NULL); + gchar *install_dir = g_win32_get_package_installation_directory(NULL, NULL); /* e.g. C:\Program Files\Geany\share\locale */ locale_dir = g_strconcat(install_dir, "\share\locale", NULL); g_free(install_dir);
Modified: trunk/src/plugins.c =================================================================== --- trunk/src/plugins.c 2008-10-25 18:55:51 UTC (rev 3150) +++ trunk/src/plugins.c 2008-10-25 18:56:04 UTC (rev 3151) @@ -755,7 +755,7 @@ #ifdef G_OS_WIN32 static gchar *get_plugin_path() { - gchar *install_dir = g_win32_get_package_installation_directory("geany", NULL); + gchar *install_dir = g_win32_get_package_installation_directory(NULL, NULL); gchar *path;
path = g_strconcat(install_dir, "\lib", NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.