diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2012-04-17 10:29:14 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2012-08-11 07:25:54 +0200 |
commit | b0ecd81212bd26a72d5c10f85c2061a9264ccf81 (patch) | |
tree | 7cc137fd40f8983f97ce77823d9bf4b7c7812ba2 /src | |
parent | 94f27cb38c25287aa554cbd512596930b979e17e (diff) | |
download | logdiag-b0ecd81212bd26a72d5c10f85c2061a9264ccf81.tar.gz logdiag-b0ecd81212bd26a72d5c10f85c2061a9264ccf81.tar.xz logdiag-b0ecd81212bd26a72d5c10f85c2061a9264ccf81.zip |
Maintenance.
* Fix setting the GSETTINGS_SCHEMA_DIR environment variable.
* Use g_value_take_boxed() instead of deprecated
g_value_set_boxed_take_ownership().
* Remove an unused variable.
* Clean up load_category() a bit.
Diffstat (limited to 'src')
-rw-r--r-- | src/logdiag.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/logdiag.c b/src/logdiag.c index 904514e..fd32e69 100644 --- a/src/logdiag.c +++ b/src/logdiag.c @@ -106,6 +106,15 @@ main (int argc, char *argv[]) bind_textdomain_codeset (GETTEXT_DOMAIN, "UTF-8"); textdomain (GETTEXT_DOMAIN); +#ifdef PROJECT_GSETTINGS_DIR + /* This is enabled when the build is set up for developing, so that the + * application can find its schema. It might also find use when + * installing the application into a location that's missing from + * g_get_system_data_dirs(), for example /usr/local or ~/.local. + */ + g_setenv ("GSETTINGS_SCHEMA_DIR", PROJECT_GSETTINGS_DIR, 0); +#endif /* PROJECT_GSETTINGS_DIR */ + #ifdef _WIN32 /* Don't be unneccessarily limited by the system ANSI codepage. */ argv_overriden = get_utf8_args (&argc, &argv); @@ -131,15 +140,6 @@ main (int argc, char *argv[]) } #endif -#ifdef PROJECT_GSETTINGS_DIR - /* This is enabled when the build is set up for developing, so the - * application can find it's schema. It might also find use when - * installing the application into a location that's missing from - * g_get_system_data_dirs(), for example /usr/local or ~/.local. - */ - g_setenv ("GSETTINGS_SCHEMA_DIR", PROJECT_GSETTINGS_DIR, 0); -#endif /* PROJECT_GSETTINGS_DIR */ - gtk_window_set_default_icon_name (PROJECT_NAME); /* TODO: Be able to open multiple files. */ |