[gjs: 22/45] [cairo] Rename cr to context in public API
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 22/45] [cairo] Rename cr to context in public API
- Date: Tue, 2 Mar 2010 18:53:54 +0000 (UTC)
commit ebc198b25067e0049caff095932e4cc86f9fab77
Author: Johan Dahlin <johan gnome org>
Date: Thu Feb 25 18:31:32 2010 -0300
[cairo] Rename cr to context in public API
modules/cairo-context.c | 16 ++++++++--------
modules/cairo-private.h | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/modules/cairo-context.c b/modules/cairo-context.c
index 0cbfd05..093d447 100644
--- a/modules/cairo-context.c
+++ b/modules/cairo-context.c
@@ -376,7 +376,7 @@ mask_func(JSContext *context,
return JS_FALSE;
}
- cr = gjs_cairo_context_get_cr(context, obj);
+ cr = gjs_cairo_context_get_context(context, obj);
cairo_mask(cr, pattern);
return JS_TRUE;
@@ -406,7 +406,7 @@ maskSurface_func(JSContext *context,
return JS_FALSE;
}
- cr = gjs_cairo_context_get_cr(context, obj);
+ cr = gjs_cairo_context_get_context(context, obj);
cairo_mask_surface(cr, surface, x, y);
return JS_TRUE;
@@ -433,7 +433,7 @@ setSource_func(JSContext *context,
return JS_FALSE;
}
- cr = gjs_cairo_context_get_cr(context, obj);
+ cr = gjs_cairo_context_get_context(context, obj);
cairo_set_source(cr, pattern);
return JS_TRUE;
@@ -462,7 +462,7 @@ setSourceSurface_func(JSContext *context,
return JS_FALSE;
}
- cr = gjs_cairo_context_get_cr(context, obj);
+ cr = gjs_cairo_context_get_context(context, obj);
cairo_set_source_surface(cr, surface, x, y);
return JS_TRUE;
@@ -570,8 +570,8 @@ static JSFunctionSpec gjs_cairo_context_proto_funcs[] = {
};
JSObject *
-gjs_cairo_context_from_cr(JSContext *context,
- cairo_t *cr)
+gjs_cairo_context_from_context(JSContext *context,
+ cairo_t *cr)
{
JSObject *object;
@@ -585,8 +585,8 @@ gjs_cairo_context_from_cr(JSContext *context,
}
cairo_t *
-gjs_cairo_context_get_cr(JSContext *context,
- JSObject *object)
+gjs_cairo_context_get_context(JSContext *context,
+ JSObject *object)
{
GjsCairoContext *priv;
priv = priv_from_js(context, object);
diff --git a/modules/cairo-private.h b/modules/cairo-private.h
index fbdf7a8..e11e67a 100644
--- a/modules/cairo-private.h
+++ b/modules/cairo-private.h
@@ -39,9 +39,9 @@ jsval gjs_cairo_context_create_proto (JSContext *contex
JSObject *module,
const char *proto_name,
JSObject *parent);
-cairo_t * gjs_cairo_context_get_cr (JSContext *context,
+cairo_t * gjs_cairo_context_get_context (JSContext *context,
JSObject *object);
-JSObject * gjs_cairo_context_from_cr (JSContext *context,
+JSObject * gjs_cairo_context_from_context (JSContext *context,
cairo_t *cr);
/* surface */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]