From fcf4af4736529e4a65f3213cd1f1157b7c258811 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Tue, 17 Feb 2009 09:37:35 +0800 Subject: Use NULL to replace 0 as the last argument of g_object_new. --- src/ibustext.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ibustext.c') diff --git a/src/ibustext.c b/src/ibustext.c index 9b87701..1725dda 100644 --- a/src/ibustext.c +++ b/src/ibustext.c @@ -176,7 +176,7 @@ ibus_text_new_from_string (const gchar *str) IBusText *text; - text= g_object_new (IBUS_TYPE_TEXT, 0); + text= g_object_new (IBUS_TYPE_TEXT, NULL); text->is_static = FALSE; text->text = g_strdup (str); @@ -191,7 +191,7 @@ ibus_text_new_from_ucs4 (const gunichar *str) IBusText *text; - text= g_object_new (IBUS_TYPE_TEXT, 0); + text= g_object_new (IBUS_TYPE_TEXT, NULL); text->is_static = FALSE; text->text = g_ucs4_to_utf8 (str, -1, NULL, NULL, NULL); @@ -206,7 +206,7 @@ ibus_text_new_from_static_string (const gchar *str) IBusText *text; - text= g_object_new (IBUS_TYPE_TEXT, 0); + text= g_object_new (IBUS_TYPE_TEXT, NULL); text->is_static = TRUE; text->text = (gchar *)str; @@ -231,7 +231,7 @@ ibus_text_new_from_printf (const gchar *format, if (str == NULL) return NULL; - text= g_object_new (IBUS_TYPE_TEXT, 0); + text= g_object_new (IBUS_TYPE_TEXT, NULL); text->text = (gchar *)str; @@ -244,7 +244,7 @@ ibus_text_new_from_unichar (gunichar c) IBusText *text; gint len; - text= g_object_new (IBUS_TYPE_TEXT, 0); + text= g_object_new (IBUS_TYPE_TEXT, NULL); text->text = (gchar *)g_malloc (12); len = g_unichar_to_utf8 (c, text->text); -- cgit