gtranslator r3642 - in trunk/src: . translation-memory
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3642 - in trunk/src: . translation-memory
- Date: Mon, 22 Sep 2008 09:40:36 +0000 (UTC)
Author: icq
Date: Mon Sep 22 09:40:36 2008
New Revision: 3642
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3642&view=rev
Log:
* translation-memory/translation-memory-ui.c:
(showed_message_cb):
Removed sort in the options showed because now the backend
sort the options by level.
Modified:
trunk/src/ChangeLog
trunk/src/translation-memory/translation-memory-ui.c
Modified: trunk/src/translation-memory/translation-memory-ui.c
==============================================================================
--- trunk/src/translation-memory/translation-memory-ui.c (original)
+++ trunk/src/translation-memory/translation-memory-ui.c Mon Sep 22 09:40:36 2008
@@ -103,19 +103,6 @@
gtranslator_po_set_state (po, GTR_PO_STATE_MODIFIED);
}
-static gint
-compare_level (GtranslatorTranslationMemoryMatch *a,
- GtranslatorTranslationMemoryMatch *b)
-{
- if (a->level > b->level) {
- return -1;
- }else if (a->level == b->level) {
- return 0;
- }else {
- return 1;
- }
-}
-
static void
showed_message_cb (GtranslatorTab *tab,
GtranslatorMsg *msg,
@@ -129,7 +116,6 @@
gint i = 1;
gint j = 1;
gint k = 0;
- GList *tm_list_unsorted = NULL;
GList *tm_list = NULL;
GList *l = NULL;
GList *renderers_list = NULL;
@@ -159,10 +145,7 @@
tm = (GtranslatorTranslationMemory *)gtranslator_application_get_translation_memory (GTR_APP);
- tm_list_unsorted = gtranslator_translation_memory_lookup (tm,
- msgid);
- tm_list = g_list_sort (tm_list_unsorted,
- (GCompareFunc) compare_level);
+ tm_list = gtranslator_translation_memory_lookup (tm, msgid);
if (tm_list == NULL) {
gtk_widget_set_sensitive (tm_menu, FALSE);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]