Revision: 1407
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1407&view=rev
Author: eht16
Date: 2010-05-25 20:01:45 +0000 (Tue, 25 May 2010)
Log Message:
-----------
Fix broken checks when the selected text is only on one line.
Modified Paths:
--------------
trunk/geany-plugins/spellcheck/ChangeLog
trunk/geany-plugins/spellcheck/src/speller.c
Modified: trunk/geany-plugins/spellcheck/ChangeLog
===================================================================
--- trunk/geany-plugins/spellcheck/ChangeLog 2010-05-25 19:44:08 UTC (rev 1406)
+++ trunk/geany-plugins/spellcheck/ChangeLog 2010-05-25 20:01:45 UTC (rev 1407)
@@ -1,3 +1,9 @@
+2010-05-25 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/speller.c:
+ Fix broken checks when the selected text is only on one line.
+
+
2010-01-01 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/*.c, src/*.h:
Modified: trunk/geany-plugins/spellcheck/src/speller.c
===================================================================
--- trunk/geany-plugins/spellcheck/src/speller.c 2010-05-25 19:44:08 UTC (rev 1406)
+++ trunk/geany-plugins/spellcheck/src/speller.c 2010-05-25 20:01:45 UTC (rev 1407)
@@ -196,16 +196,25 @@
}
g_free(dict_string);
- for (i = first_line; i < last_line; i++)
+ if (first_line == last_line)
{
- line = sci_get_line(doc->editor->sci, i);
+ line = sci_get_selection_contents(doc->editor->sci);
+ suggestions_found += sc_speller_process_line(doc, first_line, line);
+ g_free(line);
+ }
+ else
+ {
+ for (i = first_line; i < last_line; i++)
+ {
+ line = sci_get_line(doc->editor->sci, i);
- suggestions_found += sc_speller_process_line(doc, i, line);
+ suggestions_found += sc_speller_process_line(doc, i, line);
- /* process other GTK events to keep the GUI being responsive */
- while (g_main_context_iteration(NULL, FALSE));
+ /* process other GTK events to keep the GUI being responsive */
+ while (g_main_context_iteration(NULL, FALSE));
- g_free(line);
+ g_free(line);
+ }
}
if (suggestions_found == 0 && sc_info->use_msgwin)
msgwin_msg_add(COLOR_BLUE, -1, NULL, _("The checked text is spelled correctly."));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1405
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1405&view=rev
Author: colombanw
Date: 2010-05-23 22:37:30 +0000 (Sun, 23 May 2010)
Log Message:
-----------
GeanyGenDoc: Don't report a missing configuration file as a warning
Only print an information if the configuration file is missing, since
it is not a problem and the file never exists at first start-up.
Modified Paths:
--------------
trunk/geany-plugins/geanygendoc/src/ggd-plugin.c
Modified: trunk/geany-plugins/geanygendoc/src/ggd-plugin.c
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd-plugin.c 2010-05-23 22:37:11 UTC (rev 1404)
+++ trunk/geany-plugins/geanygendoc/src/ggd-plugin.c 2010-05-23 22:37:30 UTC (rev 1405)
@@ -204,7 +204,13 @@
success = ggd_opt_group_load_from_file (plugin->config, conffile, &err);
}
if (err) {
- g_warning (_("Failed to load configuration: %s"), err->message);
+ GLogLevelFlags level = G_LOG_LEVEL_WARNING;
+
+ if (err->domain == G_FILE_ERROR && err->code == G_FILE_ERROR_NOENT) {
+ level = G_LOG_LEVEL_INFO;
+ }
+ g_log (G_LOG_DOMAIN, level,
+ _("Failed to load configuration: %s"), err->message);
g_error_free (err);
}
g_free (conffile);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1404
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1404&view=rev
Author: colombanw
Date: 2010-05-23 22:37:11 +0000 (Sun, 23 May 2010)
Log Message:
-----------
GeanyGenDoc: Set the G_LOG_DOMAIN
Set the G_LOG_DOMAIN constant to make the log message of the plugin
easily identifiable from those of Geany or other plugins.
Modified Paths:
--------------
trunk/geany-plugins/geanygendoc/src/Makefile.am
Modified: trunk/geany-plugins/geanygendoc/src/Makefile.am
===================================================================
--- trunk/geany-plugins/geanygendoc/src/Makefile.am 2010-05-23 22:36:52 UTC (rev 1403)
+++ trunk/geany-plugins/geanygendoc/src/Makefile.am 2010-05-23 22:37:11 UTC (rev 1404)
@@ -32,6 +32,7 @@
ggd-utils.h \
ggd-widget-frame.h \
ggd-widget-doctype-selector.h
+geanygendoc_la_CPPFLAGS= -DG_LOG_DOMAIN=\"GeanyGenDoc\"
geanygendoc_la_CFLAGS = $(AM_CFLAGS) \
@GLIB_CFLAGS@ \
@GIO_CFLAGS@ \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1403
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1403&view=rev
Author: colombanw
Date: 2010-05-23 22:36:52 +0000 (Sun, 23 May 2010)
Log Message:
-----------
GeanyGenDoc: Fix error reporting in ggd_get_config_file()
Don't report an error in the GError if there is actually no error,
which may lead the caller not to handle this correctly, or to corrupt
its other uses of the passed error.
Modified Paths:
--------------
trunk/geany-plugins/geanygendoc/src/ggd-utils.c
Modified: trunk/geany-plugins/geanygendoc/src/ggd-utils.c
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd-utils.c 2010-05-23 21:33:20 UTC (rev 1402)
+++ trunk/geany-plugins/geanygendoc/src/ggd-utils.c 2010-05-23 22:36:52 UTC (rev 1403)
@@ -198,10 +198,11 @@
/* try to copy the system file to the user's configuration directory */
if (ggd_copy_file (system_path, user_path, TRUE, 0640, &gerr) ||
- /* the file was already exist (unlikely if GGD_PERMS_R is set) */
+ /* the file already exists (unlikely if GGD_PERMS_R is set) */
gerr->code == G_FILE_ERROR_EXIST) {
path = user_path;
if (gerr) g_clear_error (&gerr);
+ g_clear_error (error);
} else if (gerr->code == G_FILE_ERROR_NOENT) {
/* the system file doesn't exist. No problem, just try to create the
* file (if it does not already exist) */
@@ -214,6 +215,7 @@
} else {
close (fd);
path = user_path;
+ g_clear_error (error);
}
}
if (gerr) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1402
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1402&view=rev
Author: colombanw
Date: 2010-05-23 21:33:20 +0000 (Sun, 23 May 2010)
Log Message:
-----------
GeanyGenDoc: Fix paths to user files on Windows
Don't unnecessarily prefix the paths with the directory separator
since they already are absolute and it brakes them on Windows
(\C:\...).
Modified Paths:
--------------
trunk/geany-plugins/geanygendoc/src/ggd-utils.c
Modified: trunk/geany-plugins/geanygendoc/src/ggd-utils.c
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd-utils.c 2010-05-23 19:32:15 UTC (rev 1401)
+++ trunk/geany-plugins/geanygendoc/src/ggd-utils.c 2010-05-23 21:33:20 UTC (rev 1402)
@@ -151,8 +151,8 @@
g_return_val_if_fail (name != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
- user_dir = g_build_filename (G_DIR_SEPARATOR_S, geany->app->configdir,
- "plugins", GGD_PLUGIN_CNAME, section, NULL);
+ user_dir = g_build_filename (geany->app->configdir, "plugins",
+ GGD_PLUGIN_CNAME, section, NULL);
system_dir = g_build_filename (PKGDATADIR, GGD_PLUGIN_CNAME, section, NULL);
user_path = g_build_filename (user_dir, name, NULL);
system_path = g_build_filename (system_dir, name, NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1401
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1401&view=rev
Author: eht16
Date: 2010-05-23 19:32:15 +0000 (Sun, 23 May 2010)
Log Message:
-----------
Update Windows installer script and Readme for new plugins
Modified Paths:
--------------
trunk/geany-plugins/README.windows
trunk/geany-plugins/build/geany-plugins.nsi
Modified: trunk/geany-plugins/README.windows
===================================================================
--- trunk/geany-plugins/README.windows 2010-05-23 19:25:32 UTC (rev 1400)
+++ trunk/geany-plugins/README.windows 2010-05-23 19:32:15 UTC (rev 1401)
@@ -4,7 +4,8 @@
Since the Geany Plugins 0.18 release, the Windows installer contains
a few dependency library files. Currently, these are Enchant 1.5.0 which
-is required by the Spell Check plugin and Lua 5.1 for the GeanyLua
+is required by the Spell Check plugin, Lua 5.1 for the GeanyLua
+plugin, LibXML2 for the PrettyPrinter plugin and CTPL 0.2 for the GeanyGenDoc
plugin.
The installation of these dependencies is fully optional but obviously
@@ -13,7 +14,13 @@
Enchant 1.5.0 was downloaded from
-http://ftp.acc.umu.se/pub/gnome/binaries/win32/dependencies/.
+http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/
Lua 5.1 was downloaded from
http://luaforge.net/frs/?group_id=377
+
+LibXML2 was downloaded from
+http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/
+
+CTPL 0.2 was downloaded from
+http://ctpl.tuxfamily.org/
Modified: trunk/geany-plugins/build/geany-plugins.nsi
===================================================================
--- trunk/geany-plugins/build/geany-plugins.nsi 2010-05-23 19:25:32 UTC (rev 1400)
+++ trunk/geany-plugins/build/geany-plugins.nsi 2010-05-23 19:32:15 UTC (rev 1401)
@@ -51,7 +51,7 @@
VIAddVersionKey "LegalCopyright" "Copyright 2009-2010 by the Geany developer team"
VIAddVersionKey "FileDescription" "${PRODUCT_NAME} Installer"
-BrandingText "$(^NAME) installer (NSIS 2.45)"
+BrandingText "$(^NAME) installer (NSIS 2.46)"
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
SetCompressor /SOLID lzma
ShowInstDetails hide
@@ -149,18 +149,25 @@
Delete "$INSTDIR\ReadMe.Windows.txt"
Delete "$INSTDIR\uninst-plugins.exe"
Delete "$INSTDIR\lib\addons.dll"
+ Delete "$INSTDIR\lib\codenav.dll"
+ Delete "$INSTDIR\lib\geanydoc.dll"
Delete "$INSTDIR\lib\geanyextrasel.dll"
+ Delete "$INSTDIR\lib\geanygendoc.dll"
Delete "$INSTDIR\lib\geanyinsertnum.dll"
Delete "$INSTDIR\lib\geanylatex.dll"
Delete "$INSTDIR\lib\geanylipsum.dll"
Delete "$INSTDIR\lib\geanylua.dll"
+ Delete "$INSTDIR\lib\geanyprj.dll"
Delete "$INSTDIR\lib\geanysendmail.dll"
Delete "$INSTDIR\lib\geanyvc.dll"
+ Delete "$INSTDIR\lib\pretty-printer.dll"
Delete "$INSTDIR\lib\shiftcolumn.dll"
Delete "$INSTDIR\lib\spellcheck.dll"
Delete "$INSTDIR\bin\libenchant.dll"
Delete "$INSTDIR\bin\lua5.1.dll"
+ Delete "$INSTDIR\bin\libxml2-2.dll"
+ Delete "$INSTDIR\bin\ctpl.dll"
RMDir /r "$INSTDIR\doc\plugins"
RMDir /r "$INSTDIR\lib\geany-plugins"
@@ -201,7 +208,7 @@
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Required plugin files. You cannot skip these files."
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Various translations for the included plugins."
!insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Various documentation files for the included plugins."
-!insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Dependency files for various plugins (currently libenchant for Spell Check, Lua for GeanyLua and libxml2 for PrettyPrinter)."
+!insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Dependency files for various plugins (currently libenchant for Spell Check, Lua for GeanyLua, libxml2 for PrettyPrinter, CTPL for GeanyGenDoc)."
!insertmacro MUI_FUNCTION_DESCRIPTION_END
;;;;;;;;;;;;;;;;;;;;;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.