[atk] Implement AtkComponent for AtkPlug and AtkSocket.
- From: Li Yuan <liyuan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atk] Implement AtkComponent for AtkPlug and AtkSocket.
- Date: Thu, 29 Apr 2010 08:42:54 +0000 (UTC)
commit 1d4b51f235cf85cf14387dbc0744f0cf6abb6157
Author: Mike Gorse <mgorse novell com>
Date: Mon Apr 26 15:55:23 2010 +0800
Implement AtkComponent for AtkPlug and AtkSocket.
Bug #616812.
atk/atkplug.c | 10 +++++++++-
atk/atksocket.c | 11 +++++++++--
2 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/atk/atkplug.c b/atk/atkplug.c
index 4ceb11d..0da67af 100644
--- a/atk/atkplug.c
+++ b/atk/atkplug.c
@@ -20,10 +20,13 @@
#include "atk.h"
#include "atkplug.h"
-G_DEFINE_TYPE (AtkPlug, atk_plug, ATK_TYPE_OBJECT);
+static void atk_component_interface_init (AtkComponentIface *iface);
static void atk_plug_class_init (AtkPlugClass *klass);
+G_DEFINE_TYPE_WITH_CODE (AtkPlug, atk_plug, ATK_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (ATK_TYPE_COMPONENT, atk_component_interface_init))
+
static void
atk_plug_init (AtkPlug* obj)
{
@@ -35,6 +38,11 @@ atk_plug_class_init (AtkPlugClass* klass)
klass->get_object_id = NULL;
}
+static void
+atk_component_interface_init (AtkComponentIface *iface)
+{
+}
+
AtkObject*
atk_plug_new (void)
{
diff --git a/atk/atksocket.c b/atk/atksocket.c
index 4fac8be..197c80e 100644
--- a/atk/atksocket.c
+++ b/atk/atksocket.c
@@ -20,10 +20,13 @@
#include "atk.h"
#include "atksocket.h"
-G_DEFINE_TYPE (AtkSocket, atk_socket, ATK_TYPE_OBJECT);
-
static void atk_socket_class_init (AtkSocketClass *klass);
+static void atk_component_interface_init (AtkComponentIface *iface);
+
+G_DEFINE_TYPE_WITH_CODE (AtkSocket, atk_socket, ATK_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (ATK_TYPE_COMPONENT, atk_component_interface_init))
+
static void
atk_socket_init (AtkSocket* obj)
{
@@ -36,6 +39,10 @@ atk_socket_class_init (AtkSocketClass* klass)
klass->embed = NULL;
}
+static void atk_component_interface_init (AtkComponentIface *iface)
+{
+}
+
AtkObject*
atk_socket_new (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]