Revision: 1591 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1591&view=re... Author: colombanw Date: 2010-09-17 20:05:28 +0000 (Fri, 17 Sep 2010)
Log Message: ----------- GeanyGenDoc: Set default doctype to doxygen by default
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-09-17 20:01:27 UTC (rev 1590) +++ trunk/geany-plugins/geanygendoc/src/ggd-plugin.c 2010-09-17 20:05:28 UTC (rev 1591) @@ -81,7 +81,9 @@ NULL, 0, NULL, NULL, NULL, 0l };
-/* global plugin options */ +/* global plugin options + * default values that needs to be set dynamically goes at the top of + * load_configuration() */ gchar *GGD_OPT_doctype[GEANY_MAX_BUILT_IN_FILETYPES] = { NULL }; gboolean GGD_OPT_save_to_refresh = FALSE; gboolean GGD_OPT_indent = TRUE; @@ -187,6 +189,9 @@ GError *err = NULL; guint i;
+ /* default options that needs to be set dynamically */ + GGD_OPT_doctype[0] = g_strdup ("doxygen"); + plugin->config = ggd_opt_group_new ("General"); ggd_opt_group_add_string (plugin->config, &GGD_OPT_doctype[0], "doctype"); for (i = 1; i < GEANY_MAX_BUILT_IN_FILETYPES; i++) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org