gtranslator r3862 - in trunk: . plugins/insert-tags
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3862 - in trunk: . plugins/insert-tags
- Date: Sun, 19 Oct 2008 19:33:36 +0000 (UTC)
Author: icq
Date: Sun Oct 19 19:33:36 2008
New Revision: 3862
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3862&view=rev
Log:
2008-10-19 Ignacio Casal Quinteiro <nacho resa gmail com>
* plugins/insert-tags/insert-tags-plugin.c:
It was not a good idea remove the tags already present
in the list. Now they are again. (Fixes bug #549922).
Modified:
trunk/ChangeLog
trunk/plugins/insert-tags/insert-tags-plugin.c
Modified: trunk/plugins/insert-tags/insert-tags-plugin.c
==============================================================================
--- trunk/plugins/insert-tags/insert-tags-plugin.c (original)
+++ trunk/plugins/insert-tags/insert-tags-plugin.c Sun Oct 19 19:33:36 2008
@@ -210,8 +210,6 @@
const gchar *msgid;
GRegex *regex;
GMatchInfo *match_info;
- gchar *word;
- gint i;
if (tags != NULL)
{
@@ -235,27 +233,10 @@
g_regex_match (regex, msgid, 0, &match_info);
while (g_match_info_matches (match_info))
{
- gchar *word_collate;
+ gchar *word;
word = g_match_info_fetch (match_info, 0);
- word_collate = g_utf8_collate_key (word, -1);
- for (i = 0; i < g_slist_length (tags); i++)
- {
- gchar *tag_collate;
- gchar *tag = g_slist_nth_data (tags, i);
-
- tag_collate = g_utf8_collate_key (tag, -1);
- if (strcmp (tag_collate, word_collate) == 0)
- {
- g_free (word);
- word = NULL;
- }
- g_free (tag_collate);
- }
- g_free (word_collate);
-
- if (word != NULL)
- tags = g_slist_append (tags, word);
+ tags = g_slist_append (tags, word);
g_match_info_next (match_info, NULL);
}
g_match_info_free (match_info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]