[librsvg] s/create_pango_context/get_pango_context throughout
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] s/create_pango_context/get_pango_context throughout
- Date: Thu, 7 Dec 2017 00:57:47 +0000 (UTC)
commit f5676471664a14004359acc20aa8a7e49b52101b
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Dec 6 10:33:58 2017 -0600
s/create_pango_context/get_pango_context throughout
rsvg-cairo-clip.c | 2 +-
rsvg-cairo-draw.c | 2 +-
rsvg-cairo-draw.h | 2 +-
rsvg-cairo-render.c | 2 +-
rsvg-private.h | 4 ++--
rsvg-text.c | 4 ++--
6 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/rsvg-cairo-clip.c b/rsvg-cairo-clip.c
index c50ad60..b1905a5 100644
--- a/rsvg-cairo-clip.c
+++ b/rsvg-cairo-clip.c
@@ -151,7 +151,7 @@ rsvg_cairo_clip_render_new (cairo_t *cr, RsvgCairoRender *parent)
render->type = RSVG_RENDER_TYPE_CAIRO_CLIP;
render->free = rsvg_cairo_clip_render_free;
- render->create_pango_context = rsvg_cairo_create_pango_context;
+ render->get_pango_context = rsvg_cairo_get_pango_context;
render->render_pango_layout = rsvg_cairo_clip_render_pango_layout;
render->render_path_builder = rsvg_cairo_clip_render_path_builder;
render->render_surface = rsvg_cairo_clip_render_surface;
diff --git a/rsvg-cairo-draw.c b/rsvg-cairo-draw.c
index 6d2c348..b9c326f 100644
--- a/rsvg-cairo-draw.c
+++ b/rsvg-cairo-draw.c
@@ -186,7 +186,7 @@ get_font_map_for_testing (RsvgCairoRender *render)
#endif
PangoContext *
-rsvg_cairo_create_pango_context (RsvgDrawingCtx * ctx)
+rsvg_cairo_get_pango_context (RsvgDrawingCtx * ctx)
{
PangoFontMap *fontmap;
PangoContext *context;
diff --git a/rsvg-cairo-draw.h b/rsvg-cairo-draw.h
index cbf8dbc..05b0d8b 100644
--- a/rsvg-cairo-draw.h
+++ b/rsvg-cairo-draw.h
@@ -33,7 +33,7 @@
G_BEGIN_DECLS
G_GNUC_INTERNAL
-PangoContext *rsvg_cairo_create_pango_context (RsvgDrawingCtx *ctx);
+PangoContext *rsvg_cairo_get_pango_context (RsvgDrawingCtx *ctx);
G_GNUC_INTERNAL
void rsvg_cairo_render_pango_layout (RsvgDrawingCtx *ctx, PangoLayout *layout,
double x, double y);
diff --git a/rsvg-cairo-render.c b/rsvg-cairo-render.c
index 892fd03..fc567ed 100644
--- a/rsvg-cairo-render.c
+++ b/rsvg-cairo-render.c
@@ -73,7 +73,7 @@ rsvg_cairo_render_new (cairo_t * cr, double width, double height)
cairo_render->super.type = RSVG_RENDER_TYPE_CAIRO;
cairo_render->super.free = rsvg_cairo_render_free;
- cairo_render->super.create_pango_context = rsvg_cairo_create_pango_context;
+ cairo_render->super.get_pango_context = rsvg_cairo_get_pango_context;
cairo_render->super.render_pango_layout = rsvg_cairo_render_pango_layout;
cairo_render->super.render_surface = rsvg_cairo_render_surface;
cairo_render->super.render_path_builder = rsvg_cairo_render_path_builder;
diff --git a/rsvg-private.h b/rsvg-private.h
index 97b553f..f87c917 100644
--- a/rsvg-private.h
+++ b/rsvg-private.h
@@ -225,8 +225,8 @@ struct RsvgRender {
void (*free) (RsvgRender * self);
- PangoContext *(*create_pango_context) (RsvgDrawingCtx * ctx);
- void (*render_pango_layout) (RsvgDrawingCtx * ctx, PangoLayout *layout,
+ PangoContext *(*get_pango_context) (RsvgDrawingCtx * ctx);
+ void (*render_pango_layout) (RsvgDrawingCtx * ctx, PangoLayout *layout,
double x, double y);
void (*render_path_builder) (RsvgDrawingCtx * ctx, RsvgPathBuilder *builder);
void (*render_surface) (RsvgDrawingCtx * ctx, cairo_surface_t *surface,
diff --git a/rsvg-text.c b/rsvg-text.c
index e36f179..df94f93 100644
--- a/rsvg-text.c
+++ b/rsvg-text.c
@@ -677,7 +677,7 @@ rsvg_text_render_text (RsvgDrawingCtx * ctx, const char *text, gdouble * x, gdou
if (state->font_size.length == 0)
return;
- context = ctx->render->create_pango_context (ctx);
+ context = ctx->render->get_pango_context (ctx);
layout = rsvg_text_create_layout (ctx, text, context);
pango_layout_get_size (layout, &w, &h);
iter = pango_layout_get_iter (layout);
@@ -709,7 +709,7 @@ measure_text (RsvgDrawingCtx * ctx, const char *text)
gdouble scaled_width;
if (ctx->pango_context == NULL)
- ctx->pango_context = ctx->render->create_pango_context (ctx);
+ ctx->pango_context = ctx->render->get_pango_context (ctx);
layout = rsvg_text_create_layout (ctx, text, ctx->pango_context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]