[gtranslator] Fix crash introduced in previous patch
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Fix crash introduced in previous patch
- Date: Fri, 6 Apr 2012 21:52:36 +0000 (UTC)
commit c550a45730c151b18e86c33521550097a6ab77b5
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Apr 6 23:55:13 2012 +0200
Fix crash introduced in previous patch
src/gtr-header.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gtr-header.c b/src/gtr-header.c
index 130626e..16f9d85 100644
--- a/src/gtr-header.c
+++ b/src/gtr-header.c
@@ -201,8 +201,10 @@ gtr_header_new (po_message_iterator_t iter, po_message_t message)
{
GtrHeader *header;
- header = g_object_new (GTR_TYPE_HEADER, "gettext-iter", iter,
- "gettext-msg", message, NULL);
+ header = g_object_new (GTR_TYPE_HEADER, NULL);
+
+ _gtr_msg_set_iterator (GTR_MSG (header), iter);
+ _gtr_msg_set_message (GTR_MSG (header), message);
/* We have to parse the number of plurals */
parse_nplurals (header);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]