diff options
author | David Robillard <d@drobilla.net> | 2018-09-16 16:36:44 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-16 17:08:00 +0200 |
commit | 43373dd610017d7e78672e473a36285a92254f2e (patch) | |
tree | a348bc2558f25f70e805ab0b3ecb419543fa387b /src/text.c | |
parent | 0f916d226847cf034693ea1c0427929c4fa0e46e (diff) | |
download | ganv-43373dd610017d7e78672e473a36285a92254f2e.tar.gz ganv-43373dd610017d7e78672e473a36285a92254f2e.tar.bz2 ganv-43373dd610017d7e78672e473a36285a92254f2e.zip |
Rename private implementation types according to new Gtk conventions
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -46,8 +46,8 @@ enum { static void ganv_text_init(GanvText* text) { - GanvTextImpl* impl = G_TYPE_INSTANCE_GET_PRIVATE( - text, GANV_TYPE_TEXT, GanvTextImpl); + GanvTextPrivate* impl = G_TYPE_INSTANCE_GET_PRIVATE( + text, GANV_TYPE_TEXT, GanvTextPrivate); text->impl = impl; @@ -69,8 +69,8 @@ ganv_text_destroy(GtkObject* object) g_return_if_fail(object != NULL); g_return_if_fail(GANV_IS_TEXT(object)); - GanvText* text = GANV_TEXT(object); - GanvTextImpl* impl = text->impl; + GanvText* text = GANV_TEXT(object); + GanvTextPrivate* impl = text->impl; if (impl->text) { g_free(impl->text); @@ -90,12 +90,12 @@ ganv_text_destroy(GtkObject* object) void ganv_text_layout(GanvText* text) { - GanvTextImpl* impl = text->impl; - GanvItem* item = GANV_ITEM(text); - GanvCanvas* canvas = ganv_item_get_canvas(item); - GtkWidget* widget = GTK_WIDGET(canvas); - double points = impl->font_size; - GtkStyle* style = gtk_rc_get_style(widget); + GanvTextPrivate* impl = text->impl; + GanvItem* item = GANV_ITEM(text); + GanvCanvas* canvas = ganv_item_get_canvas(item); + GtkWidget* widget = GTK_WIDGET(canvas); + double points = impl->font_size; + GtkStyle* style = gtk_rc_get_style(widget); if (impl->font_size == 0.0) { points = ganv_canvas_get_font_size(canvas); @@ -136,8 +136,8 @@ ganv_text_set_property(GObject* object, g_return_if_fail(object != NULL); g_return_if_fail(GANV_IS_TEXT(object)); - GanvText* text = GANV_TEXT(object); - GanvTextImpl* impl = text->impl; + GanvText* text = GANV_TEXT(object); + GanvTextPrivate* impl = text->impl; switch (prop_id) { case PROP_X: @@ -179,8 +179,8 @@ ganv_text_get_property(GObject* object, g_return_if_fail(object != NULL); g_return_if_fail(GANV_IS_TEXT(object)); - GanvText* text = GANV_TEXT(object); - GanvTextImpl* impl = text->impl; + GanvText* text = GANV_TEXT(object); + GanvTextPrivate* impl = text->impl; if (impl->needs_layout && (prop_id == PROP_WIDTH || prop_id == PROP_HEIGHT)) { @@ -205,8 +205,8 @@ ganv_text_bounds_item(GanvItem* item, double* x1, double* y1, double* x2, double* y2) { - GanvText* text = GANV_TEXT(item); - GanvTextImpl* impl = text->impl; + GanvText* text = GANV_TEXT(item); + GanvTextPrivate* impl = text->impl; if (impl->needs_layout) { ganv_text_layout(text); @@ -278,8 +278,8 @@ static void ganv_text_draw(GanvItem* item, cairo_t* cr, double cx, double cy, double cw, double ch) { - GanvText* text = GANV_TEXT(item); - GanvTextImpl* impl = text->impl; + GanvText* text = GANV_TEXT(item); + GanvTextPrivate* impl = text->impl; double wx = impl->coords.x; double wy = impl->coords.y; @@ -306,7 +306,7 @@ ganv_text_class_init(GanvTextClass* klass) parent_class = GANV_ITEM_CLASS(g_type_class_peek_parent(klass)); - g_type_class_add_private(klass, sizeof(GanvTextImpl)); + g_type_class_add_private(klass, sizeof(GanvTextPrivate)); gobject_class->set_property = ganv_text_set_property; gobject_class->get_property = ganv_text_get_property; |