SF.net SVN: geany-plugins:[659] trunk/geanylatex/src/geanylatex.c
frlan at users.sourceforge.net
frlan at xxxxx
Fri May 22 20:02:56 UTC 2009
Revision: 659
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=659&view=rev
Author: frlan
Date: 2009-05-22 20:02:56 +0000 (Fri, 22 May 2009)
Log Message:
-----------
GeanyLaTeX: Fix a problem with not correct loaded configurations on start up.
Modified Paths:
--------------
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2009-05-22 20:02:27 UTC (rev 658)
+++ trunk/geanylatex/src/geanylatex.c 2009-05-22 20:02:56 UTC (rev 659)
@@ -1140,9 +1140,15 @@
GtkWidget *tmp = NULL;
GKeyFile *config = g_key_file_new();
GError *error = NULL;
- g_key_file_load_from_file(config, config_file,
- G_KEY_FILE_NONE, NULL);
+ /* loading configurations from file ...*/
+ config_file = g_strconcat(geany->app->configdir, G_DIR_SEPARATOR_S,
+ "plugins", G_DIR_SEPARATOR_S,
+ "geanyLaTeX", G_DIR_SEPARATOR_S, "general.conf", NULL);
+
+ /* ... and Initialising options from config file */
+ g_key_file_load_from_file(config, config_file, G_KEY_FILE_NONE, NULL);
+
glatex_set_koma_active = g_key_file_get_boolean(config, "general",
"glatex_set_koma_active", &error);
if (error != NULL)
@@ -1167,14 +1173,6 @@
main_locale_init(LOCALEDIR, GETTEXT_PACKAGE);
- /* loading configurations from file ...*/
- config_file = g_strconcat(geany->app->configdir, G_DIR_SEPARATOR_S,
- "plugins", G_DIR_SEPARATOR_S,
- "geanyLaTeX", G_DIR_SEPARATOR_S, "general.conf", NULL);
-
- /* ... and Initialising options from config file */
- g_key_file_load_from_file(config, config_file, G_KEY_FILE_NONE, NULL);
-
g_key_file_free(config);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list