summaryrefslogtreecommitdiff
path: root/pango/pango-engine.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-05-01 21:06:16 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-05-01 21:06:16 -0400
commitbeecf8f88188391132d30b940c2a312ecaebba3a (patch)
tree91048009ed85c20a97494fd1e183c5c5d11898e4 /pango/pango-engine.c
parent9003800c297781223828c5d5e537aa34391c17ca (diff)
downloadpango-beecf8f88188391132d30b940c2a312ecaebba3a.tar.gz
Fix compiler warnings
Diffstat (limited to 'pango/pango-engine.c')
-rw-r--r--pango/pango-engine.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/pango/pango-engine.c b/pango/pango-engine.c
index bb109e5e..1a49385b 100644
--- a/pango/pango-engine.c
+++ b/pango/pango-engine.c
@@ -25,6 +25,9 @@
#include "pango-engine-private.h"
#include "pango-impl-utils.h"
+
+G_DEFINE_ABSTRACT_TYPE (PangoEngine, pango_engine, G_TYPE_OBJECT);
+
static void
pango_engine_init (PangoEngine *self)
{
@@ -35,8 +38,8 @@ pango_engine_class_init (PangoEngineClass *klass)
{
}
-G_DEFINE_ABSTRACT_TYPE (PangoEngine, pango_engine, G_TYPE_OBJECT);
+G_DEFINE_ABSTRACT_TYPE (PangoEngineLang, pango_engine_lang, PANGO_TYPE_ENGINE);
static void
pango_engine_lang_init (PangoEngineLang *self)
@@ -48,7 +51,6 @@ pango_engine_lang_class_init (PangoEngineLangClass *klass)
{
}
-G_DEFINE_ABSTRACT_TYPE (PangoEngineLang, pango_engine_lang, PANGO_TYPE_ENGINE);
static PangoCoverageLevel
pango_engine_shape_real_covers (PangoEngineShape *engine G_GNUC_UNUSED,
@@ -65,6 +67,9 @@ pango_engine_shape_real_covers (PangoEngineShape *engine G_GNUC_UNUSED,
return result;
}
+
+G_DEFINE_ABSTRACT_TYPE (PangoEngineShape, pango_engine_shape, PANGO_TYPE_ENGINE);
+
static void
pango_engine_shape_init (PangoEngineShape *klass)
{
@@ -76,8 +81,6 @@ pango_engine_shape_class_init (PangoEngineShapeClass *class)
class->covers = pango_engine_shape_real_covers;
}
-G_DEFINE_ABSTRACT_TYPE (PangoEngineShape, pango_engine_shape, PANGO_TYPE_ENGINE);
-
void
_pango_engine_shape_shape (PangoEngineShape *engine,
PangoFont *font,
@@ -174,6 +177,11 @@ fallback_engine_covers (PangoEngineShape *engine G_GNUC_UNUSED,
return PANGO_COVERAGE_NONE;
}
+
+static GType pango_fallback_engine_get_type (void);
+
+G_DEFINE_ABSTRACT_TYPE (PangoFallbackEngine, pango_fallback_engine, PANGO_TYPE_ENGINE_SHAPE);
+
static void
pango_fallback_engine_init (PangoFallbackEngine *self)
{
@@ -186,8 +194,6 @@ pango_fallback_engine_class_init (PangoFallbackEngineClass *class)
class->script_shape = fallback_engine_shape;
}
-G_DEFINE_ABSTRACT_TYPE (PangoFallbackEngine, pango_fallback_engine, PANGO_TYPE_ENGINE_SHAPE);
-
PangoEngineShape *
_pango_get_fallback_shaper (void)
{