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;
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;
}
factory = (IBusFactory *) g_object_new (IBUS_TYPE_FACTORY,
"path", IBUS_PATH_FACTORY,
- 0);
+ NULL);
priv = IBUS_FACTORY_GET_PRIVATE (factory);
priv->connection = g_object_ref (connection);
"name", engine_name,
"path", path,
"connection", priv->connection,
- 0);
+ NULL);
priv->engine_list = g_list_append (priv->engine_list, engine);
g_signal_connect (engine,
IBusFactoryInfo *info;
- info = (IBusFactoryInfo *)g_object_new (IBUS_TYPE_FACTORY_INFO, 0);
+ info = (IBusFactoryInfo *) g_object_new (IBUS_TYPE_FACTORY_INFO, NULL);
info->path = g_strdup (path);
info->name = g_strdup (name);
IBusHotkeyProfile *
ibus_hotkey_profile_new (void)
{
- IBusHotkeyProfile *profile = g_object_new (IBUS_TYPE_HOTKEY_PROFILE, 0);
+ IBusHotkeyProfile *profile = g_object_new (IBUS_TYPE_HOTKEY_PROFILE, NULL);
return profile;
}
IBusProperty *prop;
- prop = (IBusProperty *)g_object_new (IBUS_TYPE_PROPERTY, 0);
+ prop = (IBusProperty *)g_object_new (IBUS_TYPE_PROPERTY, NULL);
prop->key = g_strdup (key);
prop->icon = g_strdup (icon != NULL ? icon : "");
type = G_OBJECT_TYPE (object);
- new_object = g_object_new (type, 0);
+ new_object = g_object_new (type, NULL);
g_return_val_if_fail (new_object != NULL, NULL);
if (IBUS_SERIALIZABLE_GET_CLASS (new_object)->copy (new_object, object)) {
g_return_val_if_fail (g_type_is_a (type, IBUS_TYPE_SERIALIZABLE), NULL);
- object = g_object_new (type, 0);
+ object = g_object_new (type, NULL);
retval = IBUS_SERIALIZABLE_GET_CLASS (object)->deserialize (object, &sub_iter);
if (retval)
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);
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);
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;
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;
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);