Fix deprecated usage of g_win32_get_package_installation_directory(), pass NULL as package name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3151 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
25a9d1c0e9
commit
242f50ebd9
@ -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.
|
||||
|
@ -392,7 +392,7 @@ static void setup_paths(void)
|
||||
#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 @@ static void locale_init(void)
|
||||
#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);
|
||||
|
@ -755,7 +755,7 @@ load_plugins_from_path(const gchar *path)
|
||||
#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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user