SF.net SVN: geany:[3649] trunk
frlan at users.sourceforge.net
frlan at xxxxx
Tue Mar 24 18:45:16 UTC 2009
Revision: 3649
http://geany.svn.sourceforge.net/geany/?rev=3649&view=rev
Author: frlan
Date: 2009-03-24 18:45:16 +0000 (Tue, 24 Mar 2009)
Log Message:
-----------
Remove usage of deprecated sci_get_selected_text() from htmlchars plugin.
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/htmlchars.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-03-24 18:44:49 UTC (rev 3648)
+++ trunk/ChangeLog 2009-03-24 18:45:16 UTC (rev 3649)
@@ -1,3 +1,9 @@
+2009-03-24 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+
+ * plugins/htmlchars.c:
+ Remove usage of deprecated sci_get_selected_text() from plugin.
+
+
2009-03-24 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/callbacks.c:
Modified: trunk/plugins/htmlchars.c
===================================================================
--- trunk/plugins/htmlchars.c 2009-03-24 18:44:49 UTC (rev 3648)
+++ trunk/plugins/htmlchars.c 2009-03-24 18:45:16 UTC (rev 3649)
@@ -613,8 +613,8 @@
if (doc != NULL && sci_has_selection(doc->editor->sci))
{
- gint selection_len = sci_get_selected_text_length(doc->editor->sci);
- gchar *selection = g_malloc(selection_len + 1);
+ gint selection_len;
+ gchar *selection = NULL;
GString *replacement = g_string_new(NULL);
gint i;
gchar *new = NULL;
@@ -622,7 +622,7 @@
gchar buf[7];
gint len;
- sci_get_selected_text(doc->editor->sci, selection);
+ selection = sci_get_selection_contents(doc->editor->sci);
selection_len = sci_get_selected_text_length(doc->editor->sci) - 1;
for (i = 0; i < selection_len; i++)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list