summaryrefslogtreecommitdiffstats
path: root/src/ibusattribute.c
diff options
context:
space:
mode:
authorPeng Huang <phuang@phuang.nay.redhat.com>2009-02-17 09:37:35 +0800
committerPeng Huang <phuang@phuang.nay.redhat.com>2009-02-17 09:37:35 +0800
commitfcf4af4736529e4a65f3213cd1f1157b7c258811 (patch)
treed78af76642cb78d588dd83b1f6faff8534a5dbdc /src/ibusattribute.c
parent50453e4380288f343af04e02bf9e50ea438f198c (diff)
downloadibus-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/ibusattribute.c')
-rw-r--r--src/ibusattribute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ibusattribute.c b/src/ibusattribute.c
index 7b41ab2..e52e984 100644
--- a/src/ibusattribute.c
+++ b/src/ibusattribute.c
@@ -181,7 +181,7 @@ ibus_attribute_new (guint type,
type == IBUS_ATTR_TYPE_FOREGROUND ||
type == IBUS_ATTR_TYPE_BACKGROUND, NULL);
- IBusAttribute *attr = IBUS_ATTRIBUTE (g_object_new (IBUS_TYPE_ATTRIBUTE, 0));
+ IBusAttribute *attr = IBUS_ATTRIBUTE (g_object_new (IBUS_TYPE_ATTRIBUTE, NULL));
attr->type = type;
attr->value = value;
@@ -402,7 +402,7 @@ IBusAttrList *
ibus_attr_list_new ()
{
IBusAttrList *attr_list;
- attr_list = g_object_new (IBUS_TYPE_ATTR_LIST, 0);
+ attr_list = g_object_new (IBUS_TYPE_ATTR_LIST, NULL);
return attr_list;
}