Родитель
052994d153
Коммит
2a08af4c97
|
@ -2543,7 +2543,7 @@ new_engine_cb (GObject *obj,
|
|||
}
|
||||
else {
|
||||
if (data->context->data != data) {
|
||||
/* Request has been overriden or cancelled */
|
||||
/* Request has been overridden or cancelled */
|
||||
g_object_unref (engine);
|
||||
g_task_return_new_error (data->task,
|
||||
G_IO_ERROR,
|
||||
|
|
|
@ -747,7 +747,7 @@ _context_update_preedit_text_cb (BusInputContext *context,
|
|||
* the callback is not called for extensions and panel
|
||||
* extensions are always calls by
|
||||
* bus_panel_proxy_update_preedit_text() directly
|
||||
* because panel extensions foward UpdatePreeditText to
|
||||
* because panel extensions forward UpdatePreeditText to
|
||||
* UpdatePreeditTextReceived and it can be an infinite
|
||||
* loop.
|
||||
*/
|
||||
|
@ -870,7 +870,7 @@ _context_set_content_type_cb (BusInputContext *context,
|
|||
* the callback is not called for extensions and panel \
|
||||
* extensions are always calls by \
|
||||
* bus_panel_proxy_update_preedit_text() directly \
|
||||
* because panel extensions foward UpdatePreeditText to \
|
||||
* because panel extensions forward UpdatePreeditText to \
|
||||
* UpdatePreeditTextReceived and it can be an infinite \
|
||||
* loop. \
|
||||
*/ \
|
||||
|
|
|
@ -24,7 +24,7 @@ import cgi
|
|||
import urllib2
|
||||
from xml.dom import minidom
|
||||
|
||||
def simplfy_dom(node):
|
||||
def simplify_dom(node):
|
||||
name = node.nodeName
|
||||
children = {}
|
||||
if len(node.childNodes) == 1 and node.childNodes[0].nodeType == node.TEXT_NODE:
|
||||
|
@ -32,7 +32,7 @@ def simplfy_dom(node):
|
|||
for child in node.childNodes:
|
||||
if child.nodeType != node.ELEMENT_NODE:
|
||||
continue
|
||||
child_name, child_value = simplfy_dom(child)
|
||||
child_name, child_value = simplify_dom(child)
|
||||
if child_name not in children:
|
||||
children[child_name] = []
|
||||
children[child_name].append(child_value)
|
||||
|
@ -41,7 +41,7 @@ def simplfy_dom(node):
|
|||
def parse_xml():
|
||||
filename = "/usr/share/X11/xkb/rules/evdev.xml"
|
||||
dom = minidom.parse(file(filename))
|
||||
name, root = simplfy_dom(dom)
|
||||
name, root = simplify_dom(dom)
|
||||
|
||||
layouts = root['xkbConfigRegistry'][0]['layoutList'][0]['layout']
|
||||
for layout in layouts:
|
||||
|
|
|
@ -927,7 +927,7 @@ _create_input_context_async_step_one_done (GDBusConnection *connection,
|
|||
|
||||
if (g_dbus_connection_is_closed (connection)) {
|
||||
/*
|
||||
* The connection is closed, can not contine next steps, so complete
|
||||
* The connection is closed, can not continue next steps, so complete
|
||||
* the asynchronous request with error.
|
||||
*/
|
||||
g_variant_unref(variant);
|
||||
|
|
|
@ -493,7 +493,7 @@ gchar *ibus_bus_get_name_owner_async_finish
|
|||
*
|
||||
* Exit or restart ibus-daemon synchronously.
|
||||
*
|
||||
* Returns: %TRUE if the "Exit" call is suceeded, %FALSE otherwise.
|
||||
* Returns: %TRUE if the "Exit" call is successful, %FALSE otherwise.
|
||||
*/
|
||||
gboolean ibus_bus_exit (IBusBus *bus,
|
||||
gboolean restart);
|
||||
|
@ -527,7 +527,7 @@ void ibus_bus_exit_async (IBusBus *bus,
|
|||
*
|
||||
* Finishes an operation started with ibus_bus_exit_async().
|
||||
*
|
||||
* Returns: %TRUE if the "Exit" call is suceeded, %FALSE otherwise.
|
||||
* Returns: %TRUE if the "Exit" call is successful, %FALSE otherwise.
|
||||
*/
|
||||
gboolean ibus_bus_exit_async_finish (IBusBus *bus,
|
||||
GAsyncResult *res,
|
||||
|
@ -537,11 +537,11 @@ gboolean ibus_bus_exit_async_finish (IBusBus *bus,
|
|||
* ibus_bus_create_input_context:
|
||||
* @bus: An #IBusBus.
|
||||
* @client_name: Name of client.
|
||||
* "CreateInputContext" call is suceeded, %NULL otherwise.
|
||||
*
|
||||
* Create an input context for client synchronously.
|
||||
*
|
||||
* Returns: (transfer full): An newly allocated #IBusInputContext if the
|
||||
* Returns: (transfer full): A newly allocated #IBusInputContext if the
|
||||
* "CreateInputContext" call is succeeded, %NULL otherwise.
|
||||
*/
|
||||
IBusInputContext *
|
||||
ibus_bus_create_input_context
|
||||
|
@ -578,8 +578,8 @@ void ibus_bus_create_input_context_async
|
|||
*
|
||||
* Finishes an operation started with ibus_bus_create_input_context_async().
|
||||
*
|
||||
* Returns: (transfer full): An newly allocated #IBusInputContext if the
|
||||
* "CreateInputContext" call is suceeded, %NULL otherwise.
|
||||
* Returns: (transfer full): A newly allocated #IBusInputContext if the
|
||||
* "CreateInputContext" call is succeeded, %NULL otherwise.
|
||||
*/
|
||||
IBusInputContext *
|
||||
ibus_bus_create_input_context_async_finish
|
||||
|
@ -593,8 +593,8 @@ IBusInputContext *
|
|||
*
|
||||
* Get the current focused input context synchronously.
|
||||
*
|
||||
* Returns: The named of currently focued #IBusInputContext if the
|
||||
* "CurrentInputContext" call suceeded, %NULL otherwise. The return
|
||||
* Returns: Name of the currently focused #IBusInputContext if the
|
||||
* "CurrentInputContext" call succeeded, %NULL otherwise. The return
|
||||
* value must be freed with g_free().
|
||||
*/
|
||||
gchar *ibus_bus_current_input_context
|
||||
|
@ -628,8 +628,8 @@ void ibus_bus_current_input_context_async
|
|||
*
|
||||
* Finishes an operation started with ibus_bus_current_input_context_async().
|
||||
*
|
||||
* Returns: The named of currently focued IBusInputContext if the
|
||||
* "CurrentInputContext" call suceeded, %NULL otherwise. The return
|
||||
* Returns: Name of the currently focused IBusInputContext if the
|
||||
* "CurrentInputContext" call succeeded, %NULL otherwise. The return
|
||||
* value must be freed with g_free().
|
||||
*/
|
||||
gchar *ibus_bus_current_input_context_async_finish
|
||||
|
@ -642,9 +642,9 @@ gchar *ibus_bus_current_input_context_async_finish
|
|||
* @bus: An #IBusBus.
|
||||
* @component: A input engine component.
|
||||
*
|
||||
* Register a componet to an #IBusBus synchronously.
|
||||
* Register a component to an #IBusBus synchronously.
|
||||
*
|
||||
* Returns: %TRUE if the "RegisterComponent" call is suceeded, %FALSE otherwise.
|
||||
* Returns: %TRUE if the "RegisterComponent" call is successful, %FALSE otherwise.
|
||||
*/
|
||||
gboolean ibus_bus_register_component
|
||||
(IBusBus *bus,
|
||||
|
@ -660,7 +660,7 @@ gboolean ibus_bus_register_component
|
|||
* or %NULL if you don't care about the result of the method invocation.
|
||||
* @user_data: The data to pass to callback.
|
||||
*
|
||||
* Register a componet to an #IBusBus asynchronously.
|
||||
* Register a component to an #IBusBus asynchronously.
|
||||
*/
|
||||
void ibus_bus_register_component_async
|
||||
(IBusBus *bus,
|
||||
|
@ -680,7 +680,7 @@ void ibus_bus_register_component_async
|
|||
*
|
||||
* Finishes an operation started with ibus_bus_register_component_async().
|
||||
*
|
||||
* Returns: %TRUE if the "RegisterComponent" call is suceeded, %FALSE otherwise.
|
||||
* Returns: %TRUE if the "RegisterComponent" call is successful, %FALSE otherwise.
|
||||
*/
|
||||
gboolean ibus_bus_register_component_async_finish
|
||||
(IBusBus *bus,
|
||||
|
|
|
@ -237,7 +237,7 @@ void ibus_engine_update_preedit_text
|
|||
* the behavior on focus out when the pre-edit buffer is visible.
|
||||
*
|
||||
* If @mode is IBUS_ENGINE_PREEDIT_COMMIT, contents of the pre-edit buffer
|
||||
* will be comitted and cleared.
|
||||
* will be committed and cleared.
|
||||
* If @mode is IBUS_ENGINE_PREEDIT_CLEAR, contents of the pre-edit buffer
|
||||
* will be cleared only.
|
||||
*
|
||||
|
|
|
@ -128,7 +128,7 @@ IBusObject *ibus_object_new (void);
|
|||
* ibus_object_destroy:
|
||||
* @object: an #IBusObject to destroy.
|
||||
*
|
||||
* Emit the "destory" signal notifying all reference holders that they should
|
||||
* Emit the "destroy" signal notifying all reference holders that they should
|
||||
* release the #IBusObject.
|
||||
*
|
||||
* The memory for the object itself won't be deleted until its reference count
|
||||
|
|
|
@ -371,7 +371,7 @@ void ibus_property_set_sub_props(IBusProperty *prop,
|
|||
* #IBusProperty @prop_update can either be sub-property of @prop,
|
||||
* or holds new values for @prop.
|
||||
*
|
||||
* Returns: TRUE for update suceeded; FALSE otherwise.
|
||||
* Returns: TRUE if update succeeded; FALSE otherwise.
|
||||
*/
|
||||
|
||||
gboolean ibus_property_update (IBusProperty *prop,
|
||||
|
|
|
@ -245,7 +245,7 @@ start_remove_match_async (void)
|
|||
|
||||
static int create_input_context_count = 0;
|
||||
static void
|
||||
finish_create_input_context_async_sucess (GObject *source_object,
|
||||
finish_create_input_context_async_success (GObject *source_object,
|
||||
GAsyncResult *res,
|
||||
gpointer user_data)
|
||||
{
|
||||
|
@ -290,7 +290,7 @@ test_create_input_context_async (void)
|
|||
"test-async",
|
||||
-1, /* timeout */
|
||||
NULL, /* cancellable */
|
||||
finish_create_input_context_async_sucess,
|
||||
finish_create_input_context_async_success,
|
||||
loop); /* user_data */
|
||||
g_main_loop_run (loop);
|
||||
g_main_loop_unref (loop);
|
||||
|
@ -324,13 +324,13 @@ test_create_input_context_async (void)
|
|||
"test-async",
|
||||
-1, /* timeout */
|
||||
NULL, /* cancellable */
|
||||
finish_create_input_context_async_sucess,
|
||||
finish_create_input_context_async_success,
|
||||
loop); /* user_data */
|
||||
ibus_bus_create_input_context_async (bus,
|
||||
"test-async",
|
||||
-1, /* timeout */
|
||||
NULL, /* cancellable */
|
||||
finish_create_input_context_async_sucess,
|
||||
finish_create_input_context_async_success,
|
||||
loop); /* user_data */
|
||||
ibus_bus_create_input_context_async (bus,
|
||||
"test-async",
|
||||
|
|
|
@ -2126,7 +2126,7 @@ public class IBusEmojier : Gtk.ApplicationWindow {
|
|||
public string get_current_candidate() {
|
||||
// If category_list mode, do not show the category name on preedit.
|
||||
// If candidate_panel mode, the first space key does not show the
|
||||
// lookup table but the first candidate is avaiable on preedit.
|
||||
// lookup table but the first candidate is available on preedit.
|
||||
if (!m_candidate_panel_mode)
|
||||
return "";
|
||||
uint cursor = m_lookup_table.get_cursor_pos();
|
||||
|
|
|
@ -181,9 +181,9 @@ void ibus_emojier_set_partial_match (gboolean has_partial_match);
|
|||
|
||||
/**
|
||||
* ibus_emojier_set_partial_match_length:
|
||||
* @length: minimum lenght to match partially.
|
||||
* @length: minimum length to match partially.
|
||||
*
|
||||
* Set the minimum lenght to match partially.
|
||||
* Set the minimum length to match partially.
|
||||
*/
|
||||
void ibus_emojier_set_partial_match_length
|
||||
(gint length);
|
||||
|
|
|
@ -564,7 +564,7 @@ class Indicator : IBus.Service
|
|||
* unregister_connection:
|
||||
*
|
||||
* "Destroy" dbus method is not called for the indicator's connection
|
||||
* when panel's connection is disconneted because the dbus connection
|
||||
* when panel's connection is disconnected because the dbus connection
|
||||
* is a shared session bus so need to call
|
||||
* g_dbus_connection_unregister_object() by manual here
|
||||
* so that g_object_unref(m_panel) will be called later with an idle method,
|
||||
|
|
|
@ -4,7 +4,7 @@ valac --pkg gtk+-2.0 --pkg x11 --pkg gdk-x11-2.0 --pkg gee-1.0 keybinding-manage
|
|||
|
||||
/**
|
||||
* This class is in charge to grab keybindings on the X11 display
|
||||
* and filter X11-events and passing on such events to the registed
|
||||
* and filter X11-events and passing on such events to the registered
|
||||
* handler methods.
|
||||
*
|
||||
* @author Oliver Sauder <os@esite.ch>
|
||||
|
|
Загрузка…
Ссылка в новой задаче