Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Thu, 28 Mar 2013 14:50:06 UTC
Commit: 5d88549932587699b8719e27aed0bb6f936c8b5c
https://github.com/geany/geany-plugins/commit/5d88549932587699b8719e27aed0b…
Log Message:
-----------
spellcheck: Fix check for default language if LANG contains UTF-8
g_strndup() copies bytes, not UTF-8 characters.
Modified Paths:
--------------
spellcheck/src/speller.c
Modified: spellcheck/src/speller.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -267,7 +267,7 @@ gchar *sc_speller_get_default_lang(void)
{ /* if we have something like de_DE.UTF-8, strip everything from the period to the end */
gchar *period = strchr(lang, '.');
if (period != NULL)
- result = g_strndup(lang, g_utf8_pointer_to_offset(lang, period));
+ result = g_strndup(lang, period - lang);
}
}
else
--------------
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: Tue, 19 Mar 2013 23:08:57 UTC
Commit: 58d089708aea4e2f1488f88d7d63236efba9b104
https://github.com/geany/geany-plugins/commit/58d089708aea4e2f1488f88d7d632…
Log Message:
-----------
Autotools: define GP_GTK3 as an AM conditional
This allows plugins to have conditionals in their Makefiles depending
on whether they are built against GTK2 or GTK3.
Modified Paths:
--------------
build/gtk.m4
Modified: build/gtk.m4
4 files changed, 3 insertions(+), 1 deletions(-)
===================================================================
@@ -1,6 +1,6 @@
dnl checks for the GTK version to build against (2 or 3)
dnl defines GP_GTK_PACKAGE (e.g. "gtk+-2.0"), GP_GTK_VERSION (e.g. "2.24") and
-dnl GP_GTK_VERSION_MAJOR (e.g. "2")
+dnl GP_GTK_VERSION_MAJOR (e.g. "2"); and defines the GP_GTK3 AM conditional
AC_DEFUN([GP_CHECK_GTK_VERSION],
[
AC_REQUIRE([AC_PROG_AWK])
@@ -13,6 +13,8 @@ AC_DEFUN([GP_CHECK_GTK_VERSION],
AC_SUBST([GP_GTK_PACKAGE])
AC_SUBST([GP_GTK_VERSION])
AC_SUBST([GP_GTK_VERSION_MAJOR])
+
+ AM_CONDITIONAL([GP_GTK3], [test "x$GP_GTK_VERSION_MAJOR" = x3])
])
dnl executes $1 if GTK3 is used, and $2 otherwise
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).