Revision: 1405 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1405&view=re... Author: colombanw Date: 2010-05-23 22:37:30 +0000 (Sun, 23 May 2010)
Log Message: ----------- GeanyGenDoc: Don't report a missing configuration file as a warning
Only print an information if the configuration file is missing, since it is not a problem and the file never exists at first start-up.
Modified Paths: -------------- trunk/geany-plugins/geanygendoc/src/ggd-plugin.c
Modified: trunk/geany-plugins/geanygendoc/src/ggd-plugin.c =================================================================== --- trunk/geany-plugins/geanygendoc/src/ggd-plugin.c 2010-05-23 22:37:11 UTC (rev 1404) +++ trunk/geany-plugins/geanygendoc/src/ggd-plugin.c 2010-05-23 22:37:30 UTC (rev 1405) @@ -204,7 +204,13 @@ success = ggd_opt_group_load_from_file (plugin->config, conffile, &err); } if (err) { - g_warning (_("Failed to load configuration: %s"), err->message); + GLogLevelFlags level = G_LOG_LEVEL_WARNING; + + if (err->domain == G_FILE_ERROR && err->code == G_FILE_ERROR_NOENT) { + level = G_LOG_LEVEL_INFO; + } + g_log (G_LOG_DOMAIN, level, + _("Failed to load configuration: %s"), err->message); g_error_free (err); } g_free (conffile);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org