[gnome-online-accounts/wip/rishi/gtask2: 6/13] client: Remove the pointer for the object method signal handler
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/gtask2: 6/13] client: Remove the pointer for the object method signal handler
- Date: Mon, 9 Jan 2017 19:02:56 +0000 (UTC)
commit 4068a30f5851d10298833cc65a19ab5ef27b0151
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Jan 9 15:11:35 2017 +0100
client: Remove the pointer for the object method signal handler
This is a final class, so there wasn't going to be any sub-class that
would want to override the default signal handler. We might still want
a default handler for GoaClient itself, but we can achieve the same
effect with a simple private function. It is a small price to pay for
being able to use G_DECLARE_FINAL_TYPE.
src/goa/goaclient.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/goa/goaclient.c b/src/goa/goaclient.c
index 00baaa4..fbe478e 100644
--- a/src/goa/goaclient.c
+++ b/src/goa/goaclient.c
@@ -53,10 +53,6 @@ struct _GoaClient
typedef struct
{
GObjectClass parent_class;
-
- void (*account_added) (GoaClient *self, GDBusObject *object);
- void (*account_removed) (GoaClient *self, GDBusObject *object);
- void (*account_changed) (GoaClient *self, GDBusObject *object);
} GoaClientClass;
enum
@@ -192,7 +188,7 @@ goa_client_class_init (GoaClientClass *klass)
g_signal_new ("account-added",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GoaClientClass, account_added),
+ 0,
NULL,
NULL,
g_cclosure_marshal_VOID__OBJECT,
@@ -211,7 +207,7 @@ goa_client_class_init (GoaClientClass *klass)
g_signal_new ("account-removed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GoaClientClass, account_removed),
+ 0,
NULL,
NULL,
g_cclosure_marshal_VOID__OBJECT,
@@ -230,7 +226,7 @@ goa_client_class_init (GoaClientClass *klass)
g_signal_new ("account-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GoaClientClass, account_changed),
+ 0,
NULL,
NULL,
g_cclosure_marshal_VOID__OBJECT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]