Revision: 1318
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1318&view=rev
Author: colombanw
Date: 2010-04-29 00:21:54 +0000 (Thu, 29 Apr 2010)
Log Message:
-----------
GeanyGenDoc: Make the plugin's symbols internal
Set the "internal" visibility for plugin's symbols. This cleans the
symbol table of the plugin, as well as it might allow the compiler
to do some optimizations.
This is currently only supported when building with GCC >= 4.2. Builds
with other/older compilers will simply keep their default symbol
visibility.
Modified Paths:
--------------
trunk/geanygendoc/src/ggd-doc-setting.h
trunk/geanygendoc/src/ggd-doc-type.h
trunk/geanygendoc/src/ggd-file-type-loader.h
trunk/geanygendoc/src/ggd-file-type-manager.h
trunk/geanygendoc/src/ggd-file-type.h
trunk/geanygendoc/src/ggd-options.h
trunk/geanygendoc/src/ggd-plugin.h
trunk/geanygendoc/src/ggd-tag-utils.h
trunk/geanygendoc/src/ggd-utils.h
trunk/geanygendoc/src/ggd.h
Added Paths:
-----------
trunk/geanygendoc/src/ggd-macros.h
Modified: trunk/geanygendoc/src/ggd-doc-setting.h
===================================================================
--- trunk/geanygendoc/src/ggd-doc-setting.h 2010-04-28 21:30:47 UTC (rev 1317)
+++ trunk/geanygendoc/src/ggd-doc-setting.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -25,8 +25,10 @@
#include <ctpl/ctpl.h>
#include "ggd-tag-utils.h"
+#include "ggd-macros.h"
G_BEGIN_DECLS
+GGD_BEGIN_PLUGIN_API
/**
@@ -89,6 +91,7 @@
gssize match_len);
+GGD_END_PLUGIN_API
G_END_DECLS
#endif /* guard */
Modified: trunk/geanygendoc/src/ggd-doc-type.h
===================================================================
--- trunk/geanygendoc/src/ggd-doc-type.h 2010-04-28 21:30:47 UTC (rev 1317)
+++ trunk/geanygendoc/src/ggd-doc-type.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -24,8 +24,10 @@
#include <glib.h>
#include "ggd-doc-setting.h"
+#include "ggd-macros.h"
G_BEGIN_DECLS
+GGD_BEGIN_PLUGIN_API
typedef struct _GgdDocType GgdDocType;
@@ -50,6 +52,7 @@
gint *nth_child);
+GGD_END_PLUGIN_API
G_END_DECLS
#endif /* guard */
Modified: trunk/geanygendoc/src/ggd-file-type-loader.h
===================================================================
--- trunk/geanygendoc/src/ggd-file-type-loader.h 2010-04-28 21:30:47 UTC (rev 1317)
+++ trunk/geanygendoc/src/ggd-file-type-loader.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -23,8 +23,10 @@
#include <glib.h>
#include "ggd-file-type.h"
+#include "ggd-macros.h"
G_BEGIN_DECLS
+GGD_BEGIN_PLUGIN_API
/**
@@ -51,6 +53,7 @@
GError **error);
+GGD_END_PLUGIN_API
G_END_DECLS
#endif /* guard */
Modified: trunk/geanygendoc/src/ggd-file-type-manager.h
===================================================================
--- trunk/geanygendoc/src/ggd-file-type-manager.h 2010-04-28 21:30:47 UTC (rev 1317)
+++ trunk/geanygendoc/src/ggd-file-type-manager.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -25,8 +25,10 @@
#include "ggd-file-type.h"
#include "ggd-utils.h"
+#include "ggd-macros.h"
G_BEGIN_DECLS
+GGD_BEGIN_PLUGIN_API
void ggd_file_type_manager_init (void);
@@ -41,6 +43,7 @@
const gchar *docname);
+GGD_END_PLUGIN_API
G_END_DECLS
#endif /* guard */
Modified: trunk/geanygendoc/src/ggd-file-type.h
===================================================================
--- trunk/geanygendoc/src/ggd-file-type.h 2010-04-28 21:30:47 UTC (rev 1317)
+++ trunk/geanygendoc/src/ggd-file-type.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -26,8 +26,10 @@
#include <geanyplugin.h>
#include "ggd-doc-type.h"
+#include "ggd-macros.h"
G_BEGIN_DECLS
+GGD_BEGIN_PLUGIN_API
typedef struct _GgdFileType GgdFileType;
@@ -58,6 +60,7 @@
const gchar *name);
+GGD_END_PLUGIN_API
G_END_DECLS
#endif /* guard */
Added: trunk/geanygendoc/src/ggd-macros.h
===================================================================
--- trunk/geanygendoc/src/ggd-macros.h (rev 0)
+++ trunk/geanygendoc/src/ggd-macros.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -0,0 +1,90 @@
+/*
+ *
+ * Copyright (C) 2010 Colomban Wendling <ban(a)herbesfolles.org>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef H_GGD_MACROS
+#define H_GGD_MACROS
+
+
+#if defined (__GNUC__) && \
+ (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
+# define __GGD_DO_PRAGMA(s) _Pragma (#s)
+/**
+ * GGD_PUSH_VISIBILITY:
+ * @v: The visibility to push (one of default, hidden, internal or protected)
+ *
+ * Pushes a visibility, applying to the following symbols until the next
+ * GGD_POP_VISIBILITY().
+ * You must have a corresponding GGD_POP_VISIBILITY() to each
+ * GGD_PUSH_VISIBILITY().
+ */
+# define GGD_PUSH_VISIBILITY(v) __GGD_DO_PRAGMA (GCC visibility push(v))
+/**
+ * GGD_POP_VISIBILITY:
+ *
+ * Pops the latest visibility pushed by GGD_PUSH_VISIBILITY().
+ */
+# define GGD_POP_VISIBILITY() __GGD_DO_PRAGMA (GCC visibility pop)
+#else /* ! GNUC >= 4.2 */
+# define GGD_PUSH_VISIBILITY(v) /* nothing */
+# define GGD_POP_VISIBILITY() /* nothing */
+#endif /* GNUC >= 4.2 */
+
+/**
+ * GGD_BEGIN_PLUGIN_API:
+ *
+ * Marks the beginning of some plugin API definitions.
+ * In practice, this makes the symbols have the internal visibility -- not to
+ * pollute the symbol table of the built plugin for example.
+ * You must add a corresponding %GGD_END_PLUGIN_API to end the declarations.
+ *
+ * <warning><para>
+ * You must not include anything that must be accessible from outside the plugin
+ * between %GGD_BEGIN_PLUGIN_API and %GGD_END_PLUGIN_API. Doing so would lead to
+ * strange crashes since the symbols are not exported at all. An example are the
+ * Geany's variables such as geany_functions, since Geany will need to access it
+ * at runtime.
+ * </para></warning>
+ *
+ * <example>
+ * <title>Defining some plugin API</title>
+ * <programlisting>
+ * #include <glib.h>
+ *
+ * #include "ggd-macros.h"
+ *
+ * G_BEGIN_DECLS
+ * GGD_BEGIN_PLUGIN_API
+ *
+ * gint ggd_wonderful_function (void);
+ *
+ * GGD_END_PLUGIN_API
+ * G_END_DECLS
+ * </programlisting>
+ * </example>
+ */
+#define GGD_BEGIN_PLUGIN_API GGD_PUSH_VISIBILITY (internal)
+/**
+ * GGD_END_PLUGIN_API:
+ *
+ * Marks the end of some plugin API definitions. See %GGD_BEGIN_PLUGIN_API.
+ */
+#define GGD_END_PLUGIN_API GGD_POP_VISIBILITY ()
+
+
+#endif /* guard */
Modified: trunk/geanygendoc/src/ggd-options.h
===================================================================
--- trunk/geanygendoc/src/ggd-options.h 2010-04-28 21:30:47 UTC (rev 1317)
+++ trunk/geanygendoc/src/ggd-options.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -23,7 +23,10 @@
#include <glib.h>
#include <gtk/gtk.h>
+#include "ggd-macros.h"
+
G_BEGIN_DECLS
+GGD_BEGIN_PLUGIN_API
/**
@@ -81,6 +84,7 @@
GTK_OBJECT (proxy), "active"))
+GGD_END_PLUGIN_API
G_END_DECLS
#endif /* guard */
Modified: trunk/geanygendoc/src/ggd-plugin.h
===================================================================
--- trunk/geanygendoc/src/ggd-plugin.h 2010-04-28 21:30:47 UTC (rev 1317)
+++ trunk/geanygendoc/src/ggd-plugin.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -27,27 +27,36 @@
#include <glib.h>
#include <geanyplugin.h>
+#include "ggd-macros.h"
+
G_BEGIN_DECLS
-#define GGD_PLUGIN_ONAME geanygendoc
-#define GGD_PLUGIN_CNAME PACKAGE_TARNAME
-#define GGD_PLUGIN_NAME "GeanyGenDoc"
-
-
/* pretty funny hack, because Geany doesn't use a shared library for it's API,
* then we need that global function table pointer, that Geany gives at plugin
* loading time */
+/* Note that this cannot be hidden since it is accessed by the Geany instance */
extern GeanyPlugin *geany_plugin;
extern GeanyData *geany_data;
extern GeanyFunctions *geany_functions;
+
+/* Begin of the plugin's self API */
+GGD_BEGIN_PLUGIN_API
+
+
+#define GGD_PLUGIN_ONAME geanygendoc
+#define GGD_PLUGIN_CNAME PACKAGE_TARNAME
+#define GGD_PLUGIN_NAME "GeanyGenDoc"
+
+
/* global plugin options */
extern gchar *GGD_OPT_doctype;
extern gboolean GGD_OPT_save_to_refresh;
extern gboolean GGD_OPT_indent;
+GGD_END_PLUGIN_API
G_END_DECLS
#endif /* guard */
Modified: trunk/geanygendoc/src/ggd-tag-utils.h
===================================================================
--- trunk/geanygendoc/src/ggd-tag-utils.h 2010-04-28 21:30:47 UTC (rev 1317)
+++ trunk/geanygendoc/src/ggd-tag-utils.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -23,7 +23,10 @@
#include <glib.h>
#include <geanyplugin.h>
+#include "ggd-macros.h"
+
G_BEGIN_DECLS
+GGD_BEGIN_PLUGIN_API
/**
@@ -64,6 +67,7 @@
TMTagType ggd_tag_type_from_name (const gchar *name);
+GGD_END_PLUGIN_API
G_END_DECLS
#endif /* guard */
Modified: trunk/geanygendoc/src/ggd-utils.h
===================================================================
--- trunk/geanygendoc/src/ggd-utils.h 2010-04-28 21:30:47 UTC (rev 1317)
+++ trunk/geanygendoc/src/ggd-utils.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -23,7 +23,10 @@
#include <glib.h>
#include <geanyplugin.h> /* Geany's utils for some wrappers */
+#include "ggd-macros.h"
+
G_BEGIN_DECLS
+GGD_BEGIN_PLUGIN_API
/**
@@ -60,6 +63,7 @@
foreach_ptr_array ((item), (idx), (ptr_array))
+GGD_END_PLUGIN_API
G_END_DECLS
#endif /* guard */
Modified: trunk/geanygendoc/src/ggd.h
===================================================================
--- trunk/geanygendoc/src/ggd.h 2010-04-28 21:30:47 UTC (rev 1317)
+++ trunk/geanygendoc/src/ggd.h 2010-04-29 00:21:54 UTC (rev 1318)
@@ -23,7 +23,10 @@
#include <glib.h>
#include <geanyplugin.h>
+#include "ggd-macros.h"
+
G_BEGIN_DECLS
+GGD_BEGIN_PLUGIN_API
gboolean ggd_insert_comment (GeanyDocument *doc,
@@ -33,6 +36,7 @@
const gchar *doc_type);
+GGD_END_PLUGIN_API
G_END_DECLS
#endif /* guard */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1314
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1314&view=rev
Author: hyperair
Date: 2010-04-28 05:31:58 +0000 (Wed, 28 Apr 2010)
Log Message:
-----------
Use --with-geany-libdir instead of --with-geany-prefix
This should fix issues caused by the pkg-config override on 64-bit
systems that do not use /usr/lib/ as the libdir for pkg-config, by using
an overridable `pkg-config --libdir` geany. Should fix Bug #2992905
Modified Paths:
--------------
trunk/geany-plugins/build/geany.m4
Modified: trunk/geany-plugins/build/geany.m4
===================================================================
--- trunk/geany-plugins/build/geany.m4 2010-04-26 23:04:32 UTC (rev 1313)
+++ trunk/geany-plugins/build/geany.m4 2010-04-28 05:31:58 UTC (rev 1314)
@@ -2,15 +2,15 @@
[
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
AC_ARG_WITH([geany-prefix],
- AC_HELP_STRING([--with-geany-prefix=PATH],
- [Set Geany's installation prefix [[default=auto]]]),
- [geany_prefix=${withval}],
- [geany_prefix=$(${PKG_CONFIG} --variable=prefix geany)])
+ AC_HELP_STRING([--with-geany-libdir=PATH],
+ [Set Geany's installation libdir [[default=auto]]]),
+ [geany_libdir=${withval}],
+ [geany_libdir=$(${PKG_CONFIG} --variable=libdir geany)])
- export PKG_CONFIG_PATH="$geany_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
+ export PKG_CONFIG_PATH="$geany_libdir/pkgconfig:$PKG_CONFIG_PATH"
PKG_CHECK_MODULES([GEANY], [geany >= $1])
- geanypluginsdir=$(${PKG_CONFIG} --variable=libdir geany)/geany
+ geanypluginsdir=$geany_libdir/geany
geanyversion=$(${PKG_CONFIG} --modversion geany)
AC_SUBST([geanypluginsdir])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1313
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1313&view=rev
Author: colombanw
Date: 2010-04-26 23:04:32 +0000 (Mon, 26 Apr 2010)
Log Message:
-----------
GeanyGenDoc: Update French translation
Modified Paths:
--------------
trunk/geanygendoc/po/fr.po
Modified: trunk/geanygendoc/po/fr.po
===================================================================
--- trunk/geanygendoc/po/fr.po 2010-04-26 23:04:05 UTC (rev 1312)
+++ trunk/geanygendoc/po/fr.po 2010-04-26 23:04:32 UTC (rev 1313)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: geanygendoc 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-04-21 15:38+0200\n"
+"POT-Creation-Date: 2010-04-27 00:54+0200\n"
"PO-Revision-Date: 2010-04-16 00:38+0200\n"
"Last-Translator: Colomban Wendling <ban(a)herbesfolles.org>\n"
"Language-Team: French\n"
@@ -17,12 +17,12 @@
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-#: src/ggd.c:64
+#: src/ggd.c:70
#, c-format
msgid "Failed to resize memory output stream"
msgstr "Impossible de redimensionner le flux de sortie mémoire"
-#: src/ggd.c:92
+#: src/ggd.c:98
#, c-format
msgid ""
"Argument parsing regular expression did not match (argument list was: \"%s\")"
@@ -30,163 +30,172 @@
"L'expression régulière d'analyse des arguments n'a pas correspondu (la liste "
"d'arguments était : « %s »)"
-#: src/ggd.c:223
+#: src/ggd.c:231
#, c-format
msgid "Failed to build comment: %s"
msgstr "Impossible de construire le commentaire : %s"
-#: src/ggd.c:374
+#: src/ggd.c:400
#, c-format
+msgid "No documentation type \"%s\" for language \"%s\""
+msgstr "Pas de type de documentation « %s » pour le langage « %s »"
+
+#: src/ggd.c:493
+#, c-format
msgid "No valid tag for line %d"
msgstr "Pas de tag valide pour la ligne %d"
-#: src/ggd.c:384 src/ggd.c:424
+#: src/ggd-file-type-loader.c:111
+msgid "boolean value"
+msgstr "valeur booléenne"
+
+#: src/ggd-file-type-loader.c:124
#, c-format
-msgid "No documentation type \"%s\" for language \"%s\""
-msgstr "Pas de type de documentation « %s » pour le langage « %s »"
+msgid "invalid boolean value \"%s\""
+msgstr "la valeur booléenne « %s » est invalide"
-#: src/ggd-file-type-loader.c:115
+#: src/ggd-file-type-loader.c:151
#, c-format
msgid "invalid template: %s"
msgstr "modèle invalide : %s"
-#: src/ggd-file-type-loader.c:136
+#: src/ggd-file-type-loader.c:172
msgid "position name"
msgstr "nom de position"
-#: src/ggd-file-type-loader.c:143
+#: src/ggd-file-type-loader.c:179
#, c-format
msgid "invalid position \"%s\""
msgstr "la position « %s » est invalide"
-#: src/ggd-file-type-loader.c:162
+#: src/ggd-file-type-loader.c:198
msgid "policy name"
msgstr "nom de politique"
-#: src/ggd-file-type-loader.c:169
+#: src/ggd-file-type-loader.c:205
#, c-format
msgid "invalid policy \"%s\""
msgstr "la politique « %s » est invalide"
-#: src/ggd-file-type-loader.c:188
+#: src/ggd-file-type-loader.c:224
msgid "merge policy"
msgstr "politique de fusion"
-#: src/ggd-file-type-loader.c:195
+#: src/ggd-file-type-loader.c:231
#, c-format
msgid "invalid merge policy \"%s\""
msgstr "la politique de fusion « %s » est invalide"
-#: src/ggd-file-type-loader.c:217
+#: src/ggd-file-type-loader.c:253
msgid "type"
msgstr "type"
-#: src/ggd-file-type-loader.c:224
+#: src/ggd-file-type-loader.c:260
#, c-format
msgid "invalid type \"%s\""
msgstr "le type « %s » est invalide"
-#: src/ggd-file-type-loader.c:277 src/ggd-file-type-loader.c:725
+#: src/ggd-file-type-loader.c:322 src/ggd-file-type-loader.c:770
#, c-format
msgid "invalid setting name \"%s\""
msgstr ""
-#: src/ggd-file-type-loader.c:298 src/ggd-file-type-loader.c:309
-#: src/ggd-file-type-loader.c:334
+#: src/ggd-file-type-loader.c:343 src/ggd-file-type-loader.c:354
+#: src/ggd-file-type-loader.c:379
msgid "setting identifier"
msgstr ""
-#: src/ggd-file-type-loader.c:380
+#: src/ggd-file-type-loader.c:425
#, c-format
msgid "Unknown type \"%s\". Is this a typo?"
msgstr "Le type « %s » est inconnu. Est-ce une faute de frappe ?"
-#: src/ggd-file-type-loader.c:395 src/ggd-file-type-loader.c:439
-#: src/ggd-file-type-loader.c:451 src/ggd-file-type-loader.c:489
+#: src/ggd-file-type-loader.c:440 src/ggd-file-type-loader.c:484
+#: src/ggd-file-type-loader.c:496 src/ggd-file-type-loader.c:534
msgid "match identifier"
msgstr "identifiant de correspondance"
-#: src/ggd-file-type-loader.c:403
+#: src/ggd-file-type-loader.c:448
#, c-format
msgid "match is empty"
msgstr "la correspondance est vide"
-#: src/ggd-file-type-loader.c:421
+#: src/ggd-file-type-loader.c:466
msgid "documentation type identifier"
msgstr "identifiant de type de documentation"
-#: src/ggd-file-type-loader.c:525 src/ggd-file-type-loader.c:536
-#: src/ggd-file-type-loader.c:557
+#: src/ggd-file-type-loader.c:570 src/ggd-file-type-loader.c:581
+#: src/ggd-file-type-loader.c:602
msgid "doctype"
msgstr "type de documentation"
-#: src/ggd-file-type-loader.c:591
+#: src/ggd-file-type-loader.c:636
#, c-format
msgid "invalid regular expression: %s"
msgstr "expression régulière invalide : %s"
-#: src/ggd-file-type-loader.c:648
+#: src/ggd-file-type-loader.c:693
#, c-format
msgid "invalid environment description: %s"
msgstr "description d'environnement invalide : %s"
-#: src/ggd-file-type-loader.c:685 src/ggd-file-type-loader.c:696
-#: src/ggd-file-type-loader.c:735
+#: src/ggd-file-type-loader.c:730 src/ggd-file-type-loader.c:741
+#: src/ggd-file-type-loader.c:780
msgid "setting"
msgstr ""
-#: src/ggd-file-type-loader.c:763
+#: src/ggd-file-type-loader.c:808
msgid "section name"
msgstr "nom de section"
-#: src/ggd-file-type-loader.c:774
+#: src/ggd-file-type-loader.c:819
#, c-format
msgid "duplicated section \"%s\""
msgstr "la section « %s » est dupliquée"
-#: src/ggd-file-type-loader.c:783
+#: src/ggd-file-type-loader.c:828
#, c-format
msgid "invalid section name \"%s\""
msgstr "le nom de section « %s » est invalide"
-#: src/ggd-file-type-loader.c:796 src/ggd-file-type-loader.c:848
+#: src/ggd-file-type-loader.c:841 src/ggd-file-type-loader.c:893
#, c-format
msgid "input is empty"
msgstr "l'entrée est vide"
-#: src/ggd-file-type-loader.c:810
+#: src/ggd-file-type-loader.c:855
#, c-format
msgid "Parsing warning: %s:%u:%u: %s"
msgstr "Avertissement d'analyse : %s:%u:%u : %s"
-#: src/ggd-file-type-loader.c:813
+#: src/ggd-file-type-loader.c:858
#, c-format
msgid "Parsing error: %s:%u:%u: %s"
msgstr "Erreur d'analyse : %s:%u:%u : %s"
-#: src/ggd-file-type-loader.c:817
+#: src/ggd-file-type-loader.c:862
#, c-format
msgid "%s:%u:%u: %s"
msgstr "%s:%u:%u : %s"
-#: src/ggd-file-type-manager.c:111
+#: src/ggd-file-type-manager.c:174
#, c-format
msgid "Filetype configuration file for language \"%s\" not found: %s"
msgstr ""
"Le fichier de configuration du type de fichier pour le langage « %s » n'a pas "
"été trouvé : %s"
-#: src/ggd-file-type-manager.c:118
+#: src/ggd-file-type-manager.c:181
#, c-format
msgid "Failed to load file type \"%s\" from file \"%s\": %s"
msgstr ""
"Impossible de charger le type de fichier « %s » depuis le fichier « %s » : %s"
-#: src/ggd-options.c:290
+#: src/ggd-options.c:325
msgid "Unknown setting"
msgstr ""
-#: src/ggd-options.c:299
+#: src/ggd-options.c:334
msgid ""
"Invalid option or proxy: either the proxy's property or the option type is "
"incompatible."
@@ -194,97 +203,114 @@
"Option ou proxy invalide : la propriété du proxy ou le type de l'option est "
"incompatible."
-#: src/ggd-options.c:475
+#: src/ggd-options.c:511
#, c-format
msgid "Unknown value type for keyfile entry %s::%s"
msgstr "Type de valeur inconnue pour l'entrée de fichier de clé %s::%s"
-#: src/ggd-options.c:479
+#: src/ggd-options.c:515
#, c-format
msgid "Error retrieving keyfile entry %s::%s: %s"
msgstr ""
"Erreur lors de la récupération de l'entrée de fichier de clé %s::%s : %s"
-#: src/ggd-plugin.c:52
+#: src/ggd-plugin.c:51
msgid "Generates documentation comments basis from source code"
msgstr ""
"Génères des bases de commentaires de documentation depuis le code source"
-#: src/ggd-plugin.c:150
+#: src/ggd-plugin.c:155
#, c-format
msgid "Failed to load configuration: %s"
msgstr "Impossible de charger la configuration : %s"
-#: src/ggd-plugin.c:171
+#: src/ggd-plugin.c:176
#, c-format
msgid "Failed to save configuration: %s"
msgstr "Impossible d'enregistrer la configuration : %s"
-#: src/ggd-plugin.c:224 src/ggd-plugin.c:235
-msgid "Insert documentation comment"
-msgstr "Insérer un commentaire de documentation"
-
-#: src/ggd-plugin.c:267
+#: src/ggd-plugin.c:247
#, c-format
msgid "Failed to find configuration file for file type \"%s\": %s"
msgstr ""
"Impossible de trouver le fichier de configuration pour le type de fichier « %"
"s » : %s"
+#: src/ggd-plugin.c:301 src/ggd-plugin.c:312
+msgid "Insert documentation comment"
+msgstr "Insérer un commentaire de documentation"
+
#. build "document current symbol" item
-#: src/ggd-plugin.c:297
+#: src/ggd-plugin.c:338
msgid "_Document current symbol"
msgstr "_Documenter le symbole courant"
+#: src/ggd-plugin.c:339
+msgid "Generate documentation for the currently selected symbol"
+msgstr "Générer la documentation pour le symbole sélectionné"
+
#. build "document all" item
-#: src/ggd-plugin.c:301
+#: src/ggd-plugin.c:346
msgid "Document _all symbols"
msgstr "Documenter _tous les symboles"
+#: src/ggd-plugin.c:347
+msgid "Generate documentation for all the symbols in the current document"
+msgstr "Générer la documentation pour tous les symboles du fichier courant"
+
#. build "reload" item
-#: src/ggd-plugin.c:308
+#: src/ggd-plugin.c:357
msgid "_Reload configuration files"
msgstr "_Recharger les fichiers de configuration"
+#: src/ggd-plugin.c:358
+msgid "Force reloading of the configuration files"
+msgstr "Forcer le rechargement des fichiers de configuration"
+
#. language filetypes opener
-#: src/ggd-plugin.c:316
+#: src/ggd-plugin.c:367
msgid "_Edit current language configuration"
msgstr "Édit_er la configuration du langage courant"
+#: src/ggd-plugin.c:368
+msgid "Open the current language configuration file for editing"
+msgstr "Ouvrir le fichier de configuration du langage courant pour l'éditer"
+
#. build tools menu item
-#: src/ggd-plugin.c:321
+#: src/ggd-plugin.c:375
msgid "_Documentation generator"
msgstr "Générateur de _documentation"
-#: src/ggd-plugin.c:394
+#: src/ggd-plugin.c:453
msgid "Documentation _type:"
msgstr "_Type de documentation :"
#. auto-save
-#: src/ggd-plugin.c:401
+#: src/ggd-plugin.c:460
msgid "_Save file before generating comment"
msgstr "_Enregistrer le fichier avant de générer le commentaire"
-#: src/ggd-plugin.c:403
+#: src/ggd-plugin.c:462
msgid ""
-"Whether to automatically save the file in which insert comment before "
-"generating the comment. This is currently needed to have an up-to-date tag "
-"list. If you disable this option and ask for comment generation on a "
-"modified file, the behavior may be surprising (since the comment will be "
-"generated for the last saved state)."
+"Whether to automatically save the file to work on before inserting a "
+"comment. This is currently needed to have an up-to-date tag list. If you "
+"disable this option and ask for comment generation on a modified file, the "
+"behavior may be surprising since the comment will be generated for the last "
+"saved state and not the current state of the file."
msgstr ""
-"Choisis si il faut enregistrer automatiquement le fichier avant de générer "
-"un commentaire. C'est actuellement nécessaire pour avoir une liste de tags à "
-"jour. Si vous désactivez cette option et demandez la génération de "
-"commentaire pour un fichier modifié, le résultat pourra être surprenant car "
-"le commentaire sera généré pour le dernier état enregistré."
+"Choisis si il faut enregistrer automatiquement le fichier sur lequel "
+"travailler avant de générer un commentaire. C'est actuellement nécessaire "
+"pour avoir une liste de tags à jour. Si vous désactivez cette option et "
+"demandez la génération de commentaire pour un fichier modifié, le résultat "
+"pourrait être surprenant car le commentaire sera généré pour le dernier état "
+"enregistré et non l'état actuel du fichier."
-#: src/ggd-utils.c:136 src/ggd-utils.c:147
+#: src/ggd-utils.c:163 src/ggd-utils.c:174
#, c-format
msgid "file \"%s\" exists but is not a regular file"
msgstr "le fichier « %s » existe mais n'est pas un fichier régulier"
-#: src/ggd-utils.c:156
+#: src/ggd-utils.c:183
#, c-format
msgid "%s: no such file or directory"
msgstr "%s : aucun fichier ou répertoire de ce type"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1312
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1312&view=rev
Author: colombanw
Date: 2010-04-26 23:04:05 +0000 (Mon, 26 Apr 2010)
Log Message:
-----------
GeanyGenDoc: Add & cleanup some tooltips
Add tooltips for the tool's menu items;
Cleanup the big tooltip of the save-to-refresh option.
Modified Paths:
--------------
trunk/geanygendoc/src/ggd-plugin.c
Modified: trunk/geanygendoc/src/ggd-plugin.c
===================================================================
--- trunk/geanygendoc/src/ggd-plugin.c 2010-04-26 23:03:40 UTC (rev 1311)
+++ trunk/geanygendoc/src/ggd-plugin.c 2010-04-26 23:04:05 UTC (rev 1312)
@@ -336,12 +336,16 @@
menu = gtk_menu_new ();
/* build "document current symbol" item */
item = gtk_menu_item_new_with_mnemonic (_("_Document current symbol"));
+ ui_widget_set_tooltip_text (item, _("Generate documentation for the "
+ "currently selected symbol"));
g_signal_connect (item, "activate",
G_CALLBACK (document_current_symbol_handler), NULL);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
ui_add_document_sensitive (item);
/* build "document all" item */
item = gtk_menu_item_new_with_mnemonic (_("Document _all symbols"));
+ ui_widget_set_tooltip_text (item, _("Generate documentation for all the "
+ "symbols in the current document"));
g_signal_connect (item, "activate",
G_CALLBACK (document_all_symbols_handler), NULL);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
@@ -351,6 +355,8 @@
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
/* build "reload" item */
item = gtk_image_menu_item_new_with_mnemonic (_("_Reload configuration files"));
+ ui_widget_set_tooltip_text (item, _("Force reloading of the configuration "
+ "files"));
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item),
gtk_image_new_from_stock (GTK_STOCK_REFRESH,
GTK_ICON_SIZE_MENU));
@@ -359,6 +365,8 @@
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
/* language filetypes opener */
item = gtk_menu_item_new_with_mnemonic (_("_Edit current language configuration"));
+ ui_widget_set_tooltip_text (item, _("Open the current language configuration "
+ "file for editing"));
g_signal_connect (item, "activate",
G_CALLBACK (open_current_filetype_conf_handler), NULL);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
@@ -450,15 +458,13 @@
gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 0);
/* auto-save */
widget = gtk_check_button_new_with_mnemonic (_("_Save file before generating comment"));
- gtk_widget_set_tooltip_text (widget,
- _("Whether to automatically save the file in "
- "which insert comment before generating the "
- "comment. This is currently needed to have an "
- "up-to-date tag list. If you disable this "
- "option and ask for comment generation on a "
- "modified file, the behavior may be "
- "surprising (since the comment will be "
- "generated for the last saved state)."));
+ ui_widget_set_tooltip_text (widget,
+ _("Whether to automatically save the file to work on before inserting a "
+ "comment. This is currently needed to have an up-to-date tag list. "
+ "If you disable this option and ask for comment generation on a "
+ "modified file, the behavior may be surprising since the comment will be "
+ "generated for the last saved state and not the current state of the "
+ "file."));
ggd_opt_group_set_proxy_gtktogglebutton (plugin->config, &OPT_save_to_refresh,
widget);
gtk_box_pack_start (GTK_BOX (box), widget, FALSE, FALSE, 0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.