Revision: 177
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=177&view=rev
Author: eht16
Date: 2008-09-17 19:08:33 +0000 (Wed, 17 Sep 2008)
Log Message:
-----------
Fix to work with Geany API v93.
Modified Paths:
--------------
trunk/geanylua/ChangeLog
trunk/geanylua/glspi_sci.c
Modified: trunk/geanylua/ChangeLog
===================================================================
--- trunk/geanylua/ChangeLog 2008-09-17 18:14:55 UTC (rev 176)
+++ trunk/geanylua/ChangeLog 2008-09-17 19:08:33 UTC (rev 177)
@@ -1,3 +1,6 @@
+September 17, 2008 (eht16)
+ Fix to work with Geany API v93.
+
September 11, 2008 (ntrel)
Fix wrong argument for "project-close" signal.
Fix document signal callbacks to use document pointers.
@@ -6,7 +9,7 @@
Fix to work with Geany API v86.
August 7, 2008 (ntrel)
- Use $(mkdir_p) instead of $(MKDIR_P) in Makefile, so it works with
+ Use $(mkdir_p) instead of $(MKDIR_P) in Makefile, so it works with
automake <= 1.96.
July 17, 2008 (ntrel)
Modified: trunk/geanylua/glspi_sci.c
===================================================================
--- trunk/geanylua/glspi_sci.c 2008-09-17 18:14:55 UTC (rev 176)
+++ trunk/geanylua/glspi_sci.c 2008-09-17 19:08:33 UTC (rev 177)
@@ -532,7 +532,7 @@
if ( !lua_isnumber(L,1) ) {return FAIL_NUMERIC_ARG(1);}
pos=lua_tonumber(L,1);
}
- push_number(L,p_sci->find_bracematch(doc->editor->sci,pos));
+ push_number(L,p_sci->find_matching_brace(doc->editor->sci,pos));
return 1;
}
@@ -707,7 +707,7 @@
lparam=lua_toboolean(L,3);
break;
case SLT_TEXTRANGE: return FAIL_API;
- case SLT_STRINGRESULT:
+ case SLT_STRINGRESULT:
if ((he->msgid==SCI_GETTEXT)&&(wparam==0)) {
wparam=sci_send_message(doc->editor->sci, SCI_GETLENGTH, 0,0);
}
@@ -749,7 +749,7 @@
}
return 1;
case SLT_BOOL:
- lua_pushboolean(L, sci_send_message(doc->editor->sci, he->msgid, wparam, lparam));
+ lua_pushboolean(L, sci_send_message(doc->editor->sci, he->msgid, wparam, lparam));
return 1;
default:return FAIL_API;
}
@@ -797,7 +797,7 @@
lua_pushfstring(L, _("Error in module \"%s\" at function %s():\n"
" invalid table in argument #%d:\n"
" unknown flag \"%s\" for element #%d\n "),
- LUA_MODULE_NAME, &__FUNCTION__[6], 4,
+ LUA_MODULE_NAME, &__FUNCTION__[6], 4,
(strlen(flagname)>64)?_("<too large to display>"):flagname, i);
lua_error(L);
}
@@ -812,7 +812,7 @@
return 2;
} else {
g_free(ttf.lpstrText);
- return 0;
+ return 0;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 172
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=172&view=rev
Author: eht16
Date: 2008-09-08 18:48:49 +0000 (Mon, 08 Sep 2008)
Log Message:
-----------
Do not check numbers and words starting with digits.
Use the 'gtk-spell-check' GTK stock icon for the main menu item in the Tools menu.
Modified Paths:
--------------
trunk/spellcheck/ChangeLog
trunk/spellcheck/src/spellcheck.c
Modified: trunk/spellcheck/ChangeLog
===================================================================
--- trunk/spellcheck/ChangeLog 2008-09-08 14:37:12 UTC (rev 171)
+++ trunk/spellcheck/ChangeLog 2008-09-08 18:48:49 UTC (rev 172)
@@ -3,6 +3,9 @@
* src/spellcheck.c:
Add toolbar button to quickly enable/disable the
'check while typing' setting (closes #2062239).
+ Do not check numbers and words starting with digits.
+ Use the 'gtk-spell-check' GTK stock icon for the main menu
+ item in the Tools menu.
2008-08-03 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/spellcheck/src/spellcheck.c
===================================================================
--- trunk/spellcheck/src/spellcheck.c 2008-09-08 14:37:12 UTC (rev 171)
+++ trunk/spellcheck/src/spellcheck.c 2008-09-08 18:48:49 UTC (rev 172)
@@ -345,6 +345,10 @@
gchar **suggs;
GString *str = g_string_sized_new(256);
+ /* ignore numbers or words starting with digits */
+ if (isdigit(*word))
+ return 0;
+
/* early out if the word is spelled correctly */
if (enchant_dict_check(sc->dict, word, -1) == 0)
return 0;
@@ -618,7 +622,9 @@
{
const gchar *lang = g_getenv("LANG");
/** TODO check whether the returned lang is actually provided by enchant and
- * choose something else if not */
+ * choose something else if not
+ * N.B. this is not really possible/reasonable with enchant < 1.4.3 because of a
+ * bug in the Zemberek provider which always reports it has the requested dict */
if (NZV(lang))
{
if (g_ascii_strncasecmp(lang, "C", 1) == 0)
@@ -789,7 +795,8 @@
locale_init();
- plugin_fields->menu_item = sp_item = gtk_menu_item_new_with_mnemonic(_("_Spell Check"));
+ plugin_fields->menu_item = sp_item =
+ gtk_image_menu_item_new_from_stock("gtk-spell-check", NULL);
plugin_fields->flags = PLUGIN_IS_DOCUMENT_SENSITIVE;
toolbar_update();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.