summaryrefslogtreecommitdiffstats
path: root/src/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index b2e956c..0a616d2 100644
--- a/src/text.c
+++ b/src/text.c
@@ -45,7 +45,9 @@ enum {
static void
ganv_text_init(GanvText* text)
{
- GanvTextImpl* impl = GANV_TEXT_GET_PRIVATE(text);
+ GanvTextImpl* impl = G_TYPE_INSTANCE_GET_PRIVATE(
+ text, GANV_TYPE_TEXT, GanvTextImpl);
+
text->impl = impl;
memset(&impl->coords, '\0', sizeof(GanvTextCoords));