diff options
author | Peng Huang <phuang@phuang.nay.redhat.com> | 2009-02-17 09:37:35 +0800 |
---|---|---|
committer | Peng Huang <phuang@phuang.nay.redhat.com> | 2009-02-17 09:37:35 +0800 |
commit | fcf4af4736529e4a65f3213cd1f1157b7c258811 (patch) | |
tree | d78af76642cb78d588dd83b1f6faff8534a5dbdc /src/ibustext.c | |
parent | 50453e4380288f343af04e02bf9e50ea438f198c (diff) | |
download | ibus-fcf4af4736529e4a65f3213cd1f1157b7c258811.tar.gz ibus-fcf4af4736529e4a65f3213cd1f1157b7c258811.tar.xz ibus-fcf4af4736529e4a65f3213cd1f1157b7c258811.zip |
Use NULL to replace 0 as the last argument of g_object_new.
Diffstat (limited to 'src/ibustext.c')
-rw-r--r-- | src/ibustext.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |