[gnome-session] Fix the GsmSystem type registration
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] Fix the GsmSystem type registration
- Date: Fri, 10 Feb 2012 04:33:18 +0000 (UTC)
commit 14f124cb990c5a0612c94e105603fea8ec5338ff
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 9 23:32:23 2012 -0500
Fix the GsmSystem type registration
The third argument to G_DEFINE_INTERFACE is a prerequisite,
so passing G_TYPE_INTERFACE there is not right. Instead pass
G_TYPE_OBJECT.
gnome-session/gsm-system.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-session/gsm-system.c b/gnome-session/gsm-system.c
index bc7d6a9..7059c25 100644
--- a/gnome-session/gsm-system.c
+++ b/gnome-session/gsm-system.c
@@ -34,7 +34,7 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
-G_DEFINE_INTERFACE (GsmSystem, gsm_system, G_TYPE_INTERFACE);
+G_DEFINE_INTERFACE (GsmSystem, gsm_system, G_TYPE_OBJECT)
static void
gsm_system_default_init (GsmSystemInterface *iface)
@@ -81,7 +81,7 @@ gsm_system_can_restart (GsmSystem *system)
return GSM_SYSTEM_GET_IFACE (system)->can_restart (system);
}
-void
+Jvoid
gsm_system_attempt_stop (GsmSystem *system)
{
GSM_SYSTEM_GET_IFACE (system)->attempt_stop (system);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]