dbus: Remove unneeded gobjectness

Also removed the code linking dbus interface stop to application quit. DBus going missing was not handled, and isn't a fatal error anyway.
This commit is contained in:
Dorota Czaplejewicz
2020-01-09 16:13:09 +00:00
parent 033a1cf200
commit 3ecfd701d9
3 changed files with 59 additions and 238 deletions

View File

@ -71,16 +71,6 @@ on_name_lost (GDBusConnection *connection,
exit (1);
}
static void
on_destroyed (EekboardService *service,
gpointer user_data)
{
(void)service;
GMainLoop *loop = user_data;
g_main_loop_quit (loop);
}
static ServerContextService *create_context() {
ServerContextService *context = server_context_service_new ();
g_object_set_data_full (G_OBJECT(context),
@ -295,8 +285,6 @@ main (int argc, char **argv)
GMainLoop *loop = g_main_loop_new (NULL, FALSE);
g_signal_connect (service, "destroyed", G_CALLBACK(on_destroyed), loop);
g_main_loop_run (loop);
g_bus_unown_name (owner_id);