[gtranslator] Emit message change on tm use
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Emit message change on tm use
- Date: Sun, 3 Feb 2019 18:51:40 +0000 (UTC)
commit 16c33c56e67439e18922c815258e2e1dd75eb26d
Author: Daniel GarcĂa Moreno <dani danigm net>
Date: Sun Feb 3 19:50:05 2019 +0100
Emit message change on tm use
Fix #49
src/gtr-window.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/gtr-window.c b/src/gtr-window.c
index c704e7c0..2f1df77d 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -1268,9 +1268,11 @@ gtr_window_tm_keybind (GtrWindow *window,
match = (GtrTranslationMemoryMatch *) g_list_nth_data (tm_list, index);
if (match)
{
+ gtk_text_buffer_begin_user_action (buffer);
gtr_msg_set_msgstr (msg, match->match);
gtk_text_buffer_set_text (buffer, match->match, -1);
gtr_po_set_state (po, GTR_PO_STATE_MODIFIED);
+ gtk_text_buffer_end_user_action (buffer);
}
g_list_free_full (tm_list, free_match);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]