ibus->use_global_engine &&
ibus->global_engine_name) {
ibus_config_set_value (ibus->config,
- "general", "global_engine",
- g_variant_new ("s", ibus->global_engine_name));
+ "general", "global_engine",
+ g_variant_new_string (ibus->global_engine_name));
}
}
GVariant *value = ibus_config_get_value (ibus->config, "general", "global_previous_engine");
if (value == NULL)
return NULL;
- gchar *engine_name = NULL;
- g_variant_get (value, "(s)", &engine_name);
+ gchar *engine_name = g_variant_dup_string (value, NULL);
g_variant_unref (value);
return engine_name;
}
ibus->use_global_engine &&
ibus->global_previous_engine_name) {
ibus_config_set_value (ibus->config,
- "general", "global_previous_engine",
- g_variant_new ("s", ibus->global_previous_engine_name));
+ "general", "global_previous_engine",
+ g_variant_new_string (ibus->global_previous_engine_name));
}
}
GVariant *value = NULL;
g_variant_get (result, "(v)", &value);
- g_variant_ref (value);
g_variant_unref (result);
return value;
result,
error);
if (retval != NULL) {
- g_variant_get (retval, "(@a{sv})", &value);
- g_variant_ref (value);
+ g_variant_get (retval, "(v)", &value);
g_variant_unref (retval);
}
GVariant *value = NULL;
g_variant_get (result, "(@a{sv})", &value);
- g_variant_ref (value);
g_variant_unref (result);
return value;
result,
error);
if (retval != NULL) {
- g_variant_get (retval, "(v)", &value);
- g_variant_ref (value);
+ g_variant_get (retval, "(@a{sv})", &value);
g_variant_unref (retval);
}