Add comments.
This commit is contained in:
@ -381,6 +381,7 @@ eekboard_context_new (GDBusConnection *connection,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* the vanished callback is called when the server is disconnected */
|
||||||
g_bus_watch_name_on_connection (connection,
|
g_bus_watch_name_on_connection (connection,
|
||||||
name_owner,
|
name_owner,
|
||||||
G_BUS_NAME_WATCHER_FLAGS_NONE,
|
G_BUS_NAME_WATCHER_FLAGS_NONE,
|
||||||
|
|||||||
@ -155,6 +155,7 @@ eekboard_eekboard_new (GDBusConnection *connection,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* the vanished callback is called when the server is disconnected */
|
||||||
g_bus_watch_name_on_connection (connection,
|
g_bus_watch_name_on_connection (connection,
|
||||||
name_owner,
|
name_owner,
|
||||||
G_BUS_NAME_WATCHER_FLAGS_NONE,
|
G_BUS_NAME_WATCHER_FLAGS_NONE,
|
||||||
|
|||||||
@ -84,6 +84,7 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL);
|
g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL);
|
||||||
|
|
||||||
|
/* preload Eek* types for EekKeyboard deserialization */
|
||||||
g_type_class_ref (EEK_TYPE_KEYBOARD);
|
g_type_class_ref (EEK_TYPE_KEYBOARD);
|
||||||
g_type_class_ref (EEK_TYPE_SECTION);
|
g_type_class_ref (EEK_TYPE_SECTION);
|
||||||
g_type_class_ref (EEK_TYPE_KEY);
|
g_type_class_ref (EEK_TYPE_KEY);
|
||||||
|
|||||||
@ -287,6 +287,8 @@ handle_method_call (GDBusConnection *connection,
|
|||||||
g_hash_table_insert (server->context_hash,
|
g_hash_table_insert (server->context_hash,
|
||||||
object_path,
|
object_path,
|
||||||
context);
|
context);
|
||||||
|
|
||||||
|
/* the vanished callback is called when clients are disconnected */
|
||||||
g_bus_watch_name_on_connection (server->connection,
|
g_bus_watch_name_on_connection (server->connection,
|
||||||
sender,
|
sender,
|
||||||
G_BUS_NAME_WATCHER_FLAGS_NONE,
|
G_BUS_NAME_WATCHER_FLAGS_NONE,
|
||||||
|
|||||||
Reference in New Issue
Block a user