Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Sat, 24 May 2014 13:24:56 UTC
Commit: 0d11adef3bd2d597219e470313723df7b5d3bd4a
https://github.com/geany/geany-plugins/commit/0d11adef3bd2d597219e470313723…
Log Message:
-----------
Fix and extend HACKING docs on writing build/someplugin.m4
Modified Paths:
--------------
HACKING
Modified: HACKING
26 lines changed, 25 insertions(+), 1 deletions(-)
===================================================================
@@ -192,13 +192,37 @@ build files, which macro is called from configure.ac::
AC_DEFUN([GP_CHECK_YOURFANCYPLUGINNAME],
[
GP_ARG_DISABLE([yourfancypluginname], [auto])
- GP_STATUS_PLUGIN_ADD([yourfancypluginname], [$enable_yourfancxpluginname])
+ GP_COMMIT_PLUGIN_STATUS([yourfancypluginname])
AC_CONFIG_FILES([
yourplugin/Makefile
yourplugin/src/Makefile
])
])
+You may add checks for dependencies of your plugin between the
+``GP_ARG_DISABLE`` and ``GP_COMMIT_PLUGIN_STATUS`` calls. Note that you
+must respect the ``$enable_yourfancypluginname`` (lowercase) variable
+and try to avoid performing checks if it is set to ``no``, and never
+abort unless it is set to ``yes``. If a required dependency is not met
+and ``$enable_yourfancypluginname`` is not set to ``yes``, you should
+update ``enable_yourfancypluginname`` and set it to ``no`` to disable
+building of your plugin.
+
+To ease checking for modules using *pkg-config*, the
+``GP_CHECK_PLUGIN_DEPS`` macro is provided, which wraps
+``PKG_CHECK_MODULES`` and follows the above rules about plugin
+enabling/disabling.
+
+While we recommend plugins to work with both GTK 2 and 3, you can use
+the ``GP_CHECK_PLUGIN_GTK2_ONLY`` or ``GP_CHECK_PLUGIN_GTK3_ONLY``
+macros if your plugin only works with one version.
+
+You may also check which GTK version is used for the build using either
+the ``$GP_GTK_VERSION`` or ``$GP_GTK_PACKAGE`` variables, or the
+``GP_CHECK_GTK3`` macro. For example, if your plugin works with both
+GTK 2 and 3 but you want to check for a minimal GTK2 version, you may
+use ``$GP_GTK_PACKAGE >= 2.XX`` in a ``GP_CHECK_PLUGIN_DEPS`` call.
+
Makefile inside your plugin folder
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Frank Lanitz <frank(a)frank.uvena.de>
Committer: Frank Lanitz <frank(a)frank.uvena.de>
Date: Thu, 01 May 2014 11:25:13 UTC
Commit: bc6c9728afd664f5c67add0ee546d2e36bccd4e1
https://github.com/geany/geany-plugins/commit/bc6c9728afd664f5c67add0ee546d…
Log Message:
-----------
Updatechecker: Update string for new version of Geany is available to be more specific that it's Geany
Modified Paths:
--------------
updatechecker/src/updatechecker.c
Modified: updatechecker/src/updatechecker.c
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -1,7 +1,7 @@
/*
* updatechecker.c
*
- * Copyright 2011 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+ * Copyright 2011, 2014 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
*
* 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
@@ -187,8 +187,8 @@ static void update_check_result_cb(SoupSession *session,
if (version_compare(msg->response_body->data) == TRUE)
{
dialogs_show_msgbox(GTK_MESSAGE_INFO,
- _("There is a more recent version available"));
- g_message("There is a more recent version available");
+ _("There is a more recent version of Geany available"));
+ g_message(_("There is a more recent version of Geany available"));
}
else
{
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).