gtranslator r3673 - in trunk/src: . translation-memory
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3673 - in trunk/src: . translation-memory
- Date: Mon, 22 Sep 2008 09:42:15 +0000 (UTC)
Author: icq
Date: Mon Sep 22 09:42:15 2008
New Revision: 3673
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3673&view=rev
Log:
2008-08-07 Ignacio Casal Quinteiro <nacho resa gmail com>
* translation-memory/translation-memory-ui.c (on_activate_item_cb),
(showed_message_cb):
Manage the insertion as an user action.
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:42:15 2008
@@ -96,9 +96,11 @@
gtranslator_msg_set_msgstr (msg, data[index-1]);
+ gtk_text_buffer_begin_user_action (buffer);
gtk_text_buffer_set_text (buffer,
data[index-1],
- strlen (data[index-1]));
+ -1);
+ gtk_text_buffer_end_user_action(buffer);
gtranslator_po_set_state (po, GTR_PO_STATE_MODIFIED);
}
@@ -223,7 +225,7 @@
if (j>10)
break;
- }while (tm_list = g_list_next (tm_list));
+ }while ((tm_list = g_list_next (tm_list)));
gtk_menu_item_set_submenu (GTK_MENU_ITEM (tm_menu), items_menu);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]