Removed d-bus paths from service class
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
@ -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 */
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user