Commit b25a9a54 authored by Daiki Ueno's avatar Daiki Ueno
Browse files

Add comments.

parent 8b632356
......@@ -381,6 +381,7 @@ eekboard_context_new (GDBusConnection *connection,
return NULL;
}
/* the vanished callback is called when the server is disconnected */
g_bus_watch_name_on_connection (connection,
name_owner,
G_BUS_NAME_WATCHER_FLAGS_NONE,
......
......@@ -155,6 +155,7 @@ eekboard_eekboard_new (GDBusConnection *connection,
return NULL;
}
/* the vanished callback is called when the server is disconnected */
g_bus_watch_name_on_connection (connection,
name_owner,
G_BUS_NAME_WATCHER_FLAGS_NONE,
......
......@@ -84,6 +84,7 @@ main (int argc, char **argv)
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_SECTION);
g_type_class_ref (EEK_TYPE_KEY);
......
......@@ -287,6 +287,8 @@ handle_method_call (GDBusConnection *connection,
g_hash_table_insert (server->context_hash,
object_path,
context);
/* the vanished callback is called when clients are disconnected */
g_bus_watch_name_on_connection (server->connection,
sender,
G_BUS_NAME_WATCHER_FLAGS_NONE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment