Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Thu, 18 Jun 2015 15:18:22 UTC
Commit: c8162826eb59bef53ef39f163d173dfef16be33f
https://github.com/geany/geany-plugins/commit/c8162826eb59bef53ef39f163d173…
Log Message:
-----------
debugger: Remove a few dangling pointers
Those should not cause any problem in real situations, but resetting
them properly is safer as it doesn't depend on a very specific sequence
of events.
Modified Paths:
--------------
debugger/src/envtree.c
Modified: debugger/src/envtree.c
4 lines changed, 3 insertions(+), 1 deletions(-)
===================================================================
@@ -296,6 +296,7 @@ static void on_value_changed(GtkCellRendererText *renderer, gchar *path, gchar *
g_free(striped);
gtk_tree_path_free(being_edited_value);
+ being_edited_value = NULL;
}
/*
@@ -331,8 +332,9 @@ static void on_value_editing_cancelled(GtkCellRenderer *renderer, gpointer user_
g_object_set (renderer_value, "editable", FALSE, NULL);
- gtk_tree_path_free(being_edited_value);
gtk_tree_path_free(empty_path);
+ gtk_tree_path_free(being_edited_value);
+ being_edited_value = NULL;
}
/*
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Sun, 12 Oct 2014 14:18:47 UTC
Commit: 8116d2b23322c0994bb909cf54d5da9d8a561739
https://github.com/geany/geany-plugins/commit/8116d2b23322c0994bb909cf54d5d…
Log Message:
-----------
debugger: Fix internal EnvTree state after plugin reload
As the module is resident, the global variables won't get reinitialized
automatically when the plugin is reloaded, so reinitialize them
explicitly.
This is especially important for the `empty_row` variable as not
re-initializing it will lead to a double-free, and possibly a crash.
Modified Paths:
--------------
debugger/src/envtree.c
Modified: debugger/src/envtree.c
6 lines changed, 6 insertions(+), 0 deletions(-)
===================================================================
@@ -399,6 +399,12 @@ GtkWidget* envtree_init(void)
GtkTreeViewColumn *column;
GtkTreeSelection *selection;
+ /* (re)initialize globals in case plugin was reloaded but those not cleared */
+ page_read_only = FALSE;
+ entering_new_var = FALSE;
+ empty_row = NULL;
+ being_edited_value = NULL;
+
store = gtk_list_store_new (
N_COLUMNS,
G_TYPE_STRING,
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Sat, 04 Jul 2015 21:11:50 UTC
Commit: a3713a03919b79d67338d634b502cd4cc6c79fa3
https://github.com/geany/geany-plugins/commit/a3713a03919b79d67338d634b502c…
Log Message:
-----------
geanygendoc: Re-generate HTML manual
Modified Paths:
--------------
geanygendoc/docs/manual.html
Modified: geanygendoc/docs/manual.html
32 lines changed, 16 insertions(+), 16 deletions(-)
===================================================================
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.8.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" />
<title>GeanyGenDoc User Manual</title>
<style type="text/css">
@@ -404,7 +404,7 @@ <h2 class="subtitle" id="a-handy-hand-guide-for-the-lazy-documenter-in-you">A ha
symbols. Its goal is to ease writing documentation for the good.</p>
<p>If you are impatient, you will probably want to discover the <a class="reference internal" href="#user-interface-in-geany">user interface in
Geany</a> first; but if you have the time to discover the tool, take a look at the
-<a class="reference internal" href="#design">design</a> and learn how GeanyGenDoc works and how you can take the most of it.</p>
+<a class="reference internal" href="#design">design</a> and learn how GeanyGenDoc works and how you can make the most of it.</p>
<div class="contents topic" id="contents">
<p class="topic-title first">Contents</p>
<ul class="simple">
@@ -497,7 +497,7 @@ <h2 class="subtitle" id="a-handy-hand-guide-for-the-lazy-documenter-in-you">A ha
</div>
<div class="section" id="preferences-dialog">
<h2><a class="toc-backref" href="#id9">Preferences dialog</a></h2>
-<p>The preferences dialog, than can either be opened through <cite>Edit →
+<p>The preferences dialog, that can either be opened through <cite>Edit →
Plugin Preferences</cite> or with the <cite>Preferences</cite> button in the plugin manager,
allows to modify the following preferences:</p>
<dl class="docutils">
@@ -524,8 +524,8 @@ <h2 class="subtitle" id="a-handy-hand-guide-for-the-lazy-documenter-in-you">A ha
be merged with the <a class="reference internal" href="#file-types">file type</a>-specific ones, possibly overriding some parts.
It can be used to define some values for all the file types, such as whether
to write the common <cite>Since</cite> tag, define the <a class="reference external" href="http://www.doxygen.org">Doxygen</a> prefix an so on.
-Its most use case is not to need to change a file type's environment to change
-the value of one of its elements.</dd>
+Its most practical use case is not to need to change a file type's environment
+to change the value of one of its elements.</dd>
</dl>
</div>
</div>
@@ -542,7 +542,7 @@ <h2 class="subtitle" id="a-handy-hand-guide-for-the-lazy-documenter-in-you">A ha
documentation types is to allow different set of rules to be defined for each
file type.
One might want to have separate rules to generate for example <a class="reference external" href="http://www.doxygen.org">Doxygen</a>
-and <a class="reference external" href="http://www.gtk.org/gtk-doc/">Gtk-Doc</a> documentation from C sources. She should then create two
+and <a class="reference external" href="http://www.gtk.org/gtk-doc/">Gtk-Doc</a> documentation from C sources, and should then create two
documentation types in the C <a class="reference internal" href="#file-types">file type configuration file</a>, such as
"doxygen" and "gtkdoc".</dd>
<dt><a class="reference internal" href="#rules-the-cool-thing">Rule</a></dt>
@@ -633,10 +633,10 @@ <h2 class="subtitle" id="a-handy-hand-guide-for-the-lazy-documenter-in-you">A ha
<dd>A boolean. It can take one of the two symbolic values <tt class="docutils literal">True</tt> and <tt class="docutils literal">False</tt>.</dd>
<dt>enumeration</dt>
<dd>An enumeration. It consists of a named constant, generally in capital letters.
-The possible values depend on the setting that use this type.</dd>
+The possible values depend on the setting using this type.</dd>
<dt>flags</dt>
-<dd><p class="first">A logical OR of named constants. This is like enumerations but can combine
-different values.</p>
+<dd><p class="first">A logical OR of named constants. This is similar to enumerations but can
+combine different values.</p>
<p class="last">The syntax is common for such types and uses the pipe (<tt class="docutils literal">|</tt>) as
combination character. Considering the <tt class="docutils literal">A</tt>, <tt class="docutils literal">B</tt> and <tt class="docutils literal">C</tt> constants, a
valid value could be <tt class="docutils literal">A | C</tt>, which represents both <tt class="docutils literal">A</tt> and <tt class="docutils literal">C</tt> but
@@ -650,7 +650,7 @@ <h2 class="subtitle" id="a-handy-hand-guide-for-the-lazy-documenter-in-you">A ha
<div class="section" id="file-types">
<h1><a class="toc-backref" href="#id16">File types</a></h1>
<p>The file type determines which configuration applies to which document.
-<em>File type identifiers</em> are the lowercased name of the Geany's file type, for
+<em>File type identifiers</em> are the lowercased name of Geany's file type, for
example "c" or "python".</p>
<p>Configuration for a particular file type goes in a file named
<tt class="docutils literal"><span class="pre">file-type-identifier.conf</span></tt> in the <tt class="docutils literal">filetypes</tt> sub-directory of a
@@ -665,8 +665,8 @@ <h2 class="subtitle" id="a-handy-hand-guide-for-the-lazy-documenter-in-you">A ha
<dd>A regular expression used to extract arguments from a function-style argument
list (functions, methods, macros, etc.). This regular expression should match
one argument at a time and capture only the argument's name.
-This setting is a little odd but currently needed to extract argument list
-from function definitions.</dd>
+This setting is a little odd but currently required to extract argument list
+from function declarations.</dd>
<dt><tt class="docutils literal">global_environment</tt> (string)</dt>
<dd>A description of a <a class="reference external" href="http://ctpl.tuxfamily.org/">CTPL</a> environment to add when parsing <a class="reference internal" href="#rules-the-cool-thing">rule</a>'s templates.</dd>
</dl>
@@ -818,7 +818,7 @@ <h2 class="subtitle" id="a-handy-hand-guide-for-the-lazy-documenter-in-you">A ha
<dt><tt class="docutils literal">PASS</tt></dt>
<dd>Completely ignore the symbol and handle the documentation request as if it
hasn't existed at all. This can be useful to ignore e.g. variables if they
-are extracted by the tag manager of the language and you don't want to
+are extracted by the tag parser of the language and you don't want to
document them, and don't want them to "eat" the documentation request.</dd>
</dl>
</dd>
@@ -856,8 +856,8 @@ <h2 class="subtitle" id="a-handy-hand-guide-for-the-lazy-documenter-in-you">A ha
<tt class="docutils literal">$GEANY_SYS_CONFIG</tt> is generally <tt class="docutils literal">/usr/share/geany/</tt> or
<tt class="docutils literal">/usr/local/share/geany</tt> on UNIX systems.</li>
</ul>
-<p>When searching for configuration, GeanyGenDoc will first look in the
-user's configuration directory, and if it wasn't successful, in the system
+<p>When searching for a configuration, GeanyGenDoc will first look in the
+user's configuration directory, and if it wasn't found there, in the system
configuration directory. If both failed, it assumes that there is no
configuration at all.</p>
</div>
@@ -936,7 +936,7 @@ <h2 class="subtitle" id="a-handy-hand-guide-for-the-lazy-documenter-in-you">A ha
</div>
<div class="footer">
<hr class="footer" />
-Generated on: 2012-05-19.
+Generated on: 2015-06-22.
</div>
</body>
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Sat, 06 Jun 2015 13:23:37 UTC
Commit: 34934eba9d33e8851101b72ee42887dd83c12881
https://github.com/geany/geany-plugins/commit/34934eba9d33e8851101b72ee4288…
Log Message:
-----------
autotools: Add a flag to enable or disable all plugins
This allows to change the default for whether every plugins are enabled
or disabled, effectively allowing to easily select either all, or only
a specific set of plugins.
To force enable all plugins:
configure --enable-all-plugins
To force enable all plugins, but disable Addons:
configure --enable-all-plugins --disable-addons
To force enable all plugins, but Addons which is checked automatically:
configure --enable-all-plugins --enable-addons=auto
To disable all plugins, but force enable Addons:
configure --disable-all-plugins --enable-addons
Modified Paths:
--------------
build/common.m4
Modified: build/common.m4
19 lines changed, 18 insertions(+), 1 deletions(-)
===================================================================
@@ -1,16 +1,33 @@
+dnl _GP_ARG_DISABLE_ALL
+dnl Adds the --disable-all-plugins option
+dnl Sets gp_enable_all=[$enableval|auto]
+AC_DEFUN([_GP_ARG_DISABLE_ALL],
+[
+ AC_ARG_ENABLE([all-plugins],
+ [AS_HELP_STRING([--disable-all-plugins],
+ [Disable all plugins])],
+ [gp_enable_all=$enableval],
+ [gp_enable_all=auto])
+])
+
dnl GP_ARG_DISABLE(PluginName, default)
dnl - default can either be yes(enabled) or no(disabled), or auto(to be used
dnl with GP_CHECK_PLUGIN_DEPS)
dnl Generates --enable/disable options with help strings
AC_DEFUN([GP_ARG_DISABLE],
[
+ AC_REQUIRE([_GP_ARG_DISABLE_ALL])
+
AC_ARG_ENABLE(m4_tolower(AS_TR_SH($1)),
AS_HELP_STRING(m4_join(-,
--m4_if($2, no, enable, disable),
m4_tolower(AS_TR_SH($1))),
[Do not build the $1 plugin]),
m4_tolower(AS_TR_SH(enable_$1))=$enableval,
- m4_tolower(AS_TR_SH(enable_$1))=$2)
+ [AS_CASE([$gp_enable_all],
+ [no], [m4_tolower(AS_TR_SH(enable_$1))=no],
+ [yes], [m4_tolower(AS_TR_SH(enable_$1))=yes],
+ [m4_tolower(AS_TR_SH(enable_$1))=$2])])
])
dnl GP_CHECK_PLUGIN_DEPS(PluginName, VARIABLE-PREFIX, modules...)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).