Removed d-bus paths from service class

This commit is contained in:
Dorota Czaplejewicz
2019-06-22 15:40:20 +00:00
parent f1fbb37547
commit d6feec8010
6 changed files with 8 additions and 66 deletions

View File

@ -491,11 +491,8 @@ server_context_service_init (ServerContextService *context)
}
ServerContextService *
server_context_service_new (const gchar *client_name,
const gchar *object_path)
server_context_service_new ()
{
return g_object_new (SERVER_TYPE_CONTEXT_SERVICE,
"client-name", client_name,
"object-path", object_path,
NULL);
}

View File

@ -31,8 +31,7 @@ G_BEGIN_DECLS
typedef struct _ServerContextService ServerContextService;
ServerContextService *server_context_service_new (const gchar *client_name,
const gchar *object_path);
ServerContextService *server_context_service_new ();
G_END_DECLS
#endif /* SERVER_CONTEXT_SERVICE_H */

View File

@ -35,16 +35,10 @@ struct _ServerServiceClass {
G_DEFINE_TYPE (ServerService, server_service, EEKBOARD_TYPE_SERVICE);
static EekboardContextService *
server_service_real_create_context (EekboardService *self,
const gchar *client_name,
const gchar *object_path)
server_service_real_create_context (EekboardService *self)
{
GDBusConnection *connection;
ServerContextService *context;
context = server_context_service_new (client_name, object_path);
return EEKBOARD_CONTEXT_SERVICE(context);
(void)self;
return EEKBOARD_CONTEXT_SERVICE(server_context_service_new ());
}
static void