[libchamplain] ChamplainRenderer should inherit from GInitiallyUnowned, not GObject
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] ChamplainRenderer should inherit from GInitiallyUnowned, not GObject
- Date: Fri, 20 Aug 2010 22:01:01 +0000 (UTC)
commit 014097c5df87a86fbac54808c0a8620ace069cf8
Author: JiÅ?Ã Techet <techet gmail com>
Date: Fri Aug 20 16:04:53 2010 +0200
ChamplainRenderer should inherit from GInitiallyUnowned, not GObject
Signed-off-by: JiÅ?Ã Techet <techet gmail com>
champlain/champlain-renderer.c | 4 ++--
champlain/champlain-renderer.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/champlain/champlain-renderer.c b/champlain/champlain-renderer.c
index e1fad8e..4f03815 100644
--- a/champlain/champlain-renderer.c
+++ b/champlain/champlain-renderer.c
@@ -18,7 +18,7 @@
#include "champlain-renderer.h"
-G_DEFINE_TYPE (ChamplainRenderer, champlain_renderer, G_TYPE_OBJECT)
+G_DEFINE_TYPE (ChamplainRenderer, champlain_renderer, G_TYPE_INITIALLY_UNOWNED)
static void
champlain_renderer_dispose (GObject *object)
@@ -49,7 +49,7 @@ champlain_renderer_class_init (ChamplainRendererClass *klass)
void
champlain_renderer_set_data (ChamplainRenderer *renderer,
- const gchar *data,
+ const gchar *data,
guint size)
{
g_return_if_fail (CHAMPLAIN_IS_RENDERER (renderer));
diff --git a/champlain/champlain-renderer.h b/champlain/champlain-renderer.h
index ef55299..85633aa 100644
--- a/champlain/champlain-renderer.h
+++ b/champlain/champlain-renderer.h
@@ -49,12 +49,12 @@ typedef struct _ChamplainRendererClass ChamplainRendererClass;
struct _ChamplainRenderer
{
- GObject parent;
+ GInitiallyUnowned parent;
};
struct _ChamplainRendererClass
{
- GObjectClass parent_class;
+ GInitiallyUnownedClass parent_class;
void (*set_data)(ChamplainRenderer *renderer,
const gchar *data,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]