LEFT | RIGHT |
1 /* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ | 1 /* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ |
2 /* vim:set et sts=4: */ | 2 /* vim:set et sts=4: */ |
3 /* ibus - The Input Bus | 3 /* ibus - The Input Bus |
4 * Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com> | 4 * Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com> |
5 * Copyright (C) 2008-2010 Red Hat, Inc. | 5 * Copyright (C) 2008-2010 Red Hat, Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 * Returns: TRUE for successfully process the key; FALSE otherwise. | 323 * Returns: TRUE for successfully process the key; FALSE otherwise. |
324 * See also: ibus_input_context_process_key_event(). | 324 * See also: ibus_input_context_process_key_event(). |
325 * | 325 * |
326 * <note><para>Argument @user_data is ignored in this function.</para></note
> | 326 * <note><para>Argument @user_data is ignored in this function.</para></note
> |
327 */ | 327 */ |
328 engine_signals[PROCESS_KEY_EVENT] = | 328 engine_signals[PROCESS_KEY_EVENT] = |
329 g_signal_new (I_("process-key-event"), | 329 g_signal_new (I_("process-key-event"), |
330 G_TYPE_FROM_CLASS (gobject_class), | 330 G_TYPE_FROM_CLASS (gobject_class), |
331 G_SIGNAL_RUN_LAST, | 331 G_SIGNAL_RUN_LAST, |
332 G_STRUCT_OFFSET (IBusEngineClass, process_key_event), | 332 G_STRUCT_OFFSET (IBusEngineClass, process_key_event), |
333 NULL, NULL, | 333 g_signal_accumulator_true_handled, NULL, |
334 _ibus_marshal_BOOL__UINT_UINT_UINT, | 334 _ibus_marshal_BOOL__UINT_UINT_UINT, |
335 G_TYPE_BOOLEAN, | 335 G_TYPE_BOOLEAN, |
336 3, | 336 3, |
337 G_TYPE_UINT, | 337 G_TYPE_UINT, |
338 G_TYPE_UINT, | 338 G_TYPE_UINT, |
339 G_TYPE_UINT); | 339 G_TYPE_UINT); |
340 | 340 |
341 /** | 341 /** |
342 * IBusEngine::focus-in: | 342 * IBusEngine::focus-in: |
343 * @engine: An IBusEngine. | 343 * @engine: An IBusEngine. |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 signal_name, | 1171 signal_name, |
1172 parameters, | 1172 parameters, |
1173 NULL); | 1173 NULL); |
1174 } | 1174 } |
1175 | 1175 |
1176 IBusEngine * | 1176 IBusEngine * |
1177 ibus_engine_new (const gchar *engine_name, | 1177 ibus_engine_new (const gchar *engine_name, |
1178 const gchar *object_path, | 1178 const gchar *object_path, |
1179 GDBusConnection *connection) | 1179 GDBusConnection *connection) |
1180 { | 1180 { |
1181 return ibus_engine_new_type (IBUS_TYPE_ENGINE, | 1181 return ibus_engine_new_with_type (IBUS_TYPE_ENGINE, |
1182 engine_name, | 1182 engine_name, |
1183 object_path, | 1183 object_path, |
1184 connection); | 1184 connection); |
1185 } | 1185 } |
1186 | 1186 |
1187 IBusEngine * | 1187 IBusEngine * |
1188 ibus_engine_new_type (GType engine_type, | 1188 ibus_engine_new_with_type (GType engine_type, |
1189 const gchar *engine_name, | 1189 const gchar *engine_name, |
1190 const gchar *object_path, | 1190 const gchar *object_path, |
1191 GDBusConnection *connection) | 1191 GDBusConnection *connection) |
1192 { | 1192 { |
1193 g_return_val_if_fail (g_type_is_a (engine_type, IBUS_TYPE_ENGINE), NULL); | 1193 g_return_val_if_fail (g_type_is_a (engine_type, IBUS_TYPE_ENGINE), NULL); |
1194 g_return_val_if_fail (engine_name != NULL, NULL); | 1194 g_return_val_if_fail (engine_name != NULL, NULL); |
1195 g_return_val_if_fail (object_path != NULL, NULL); | 1195 g_return_val_if_fail (object_path != NULL, NULL); |
1196 g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL); | 1196 g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL); |
1197 | 1197 |
1198 GObject *object = g_object_new (engine_type, | 1198 GObject *object = g_object_new (engine_type, |
1199 "engine-name", engine_name, | 1199 "engine-name", engine_name, |
1200 "object-path", object_path, | 1200 "object-path", object_path, |
1201 "connection", connection, | 1201 "connection", connection, |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1473 DEFINE_FUNC (show_lookup_table, ShowLookupTable) | 1473 DEFINE_FUNC (show_lookup_table, ShowLookupTable) |
1474 DEFINE_FUNC (hide_lookup_table, HideLookupTable) | 1474 DEFINE_FUNC (hide_lookup_table, HideLookupTable) |
1475 #undef DEFINE_FUNC | 1475 #undef DEFINE_FUNC |
1476 | 1476 |
1477 const gchar * | 1477 const gchar * |
1478 ibus_engine_get_name (IBusEngine *engine) | 1478 ibus_engine_get_name (IBusEngine *engine) |
1479 { | 1479 { |
1480 g_return_val_if_fail (IBUS_IS_ENGINE (engine), NULL); | 1480 g_return_val_if_fail (IBUS_IS_ENGINE (engine), NULL); |
1481 return engine->priv->engine_name; | 1481 return engine->priv->engine_name; |
1482 } | 1482 } |
LEFT | RIGHT |