summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2010-01-12 02:08:51 -0500
committerBehdad Esfahbod <behdad@behdad.org>2010-01-12 02:08:51 -0500
commit1608eb418aeb23c7fd27814ba7148ae2708c8017 (patch)
tree1130d2ffc7a8ed0ea323e5dd64ffd2f76a25de83 /src
parent3c4380448abf647fe7ff93745c9def5f5e2ec326 (diff)
Add const to GdkColor
Diffstat (limited to 'src')
-rw-r--r--src/vtedraw.c10
-rw-r--r--src/vtedraw.h8
2 files changed, 9 insertions, 9 deletions
diff --git a/src/vtedraw.c b/src/vtedraw.c
index 6b1f92c..559d9fa 100644
--- a/src/vtedraw.c
+++ b/src/vtedraw.c
@@ -1044,7 +1044,7 @@ set_source_color_alpha (cairo_t *cr,
static void
_vte_pangocairo_draw_text (struct _vte_draw *draw,
struct _vte_draw_text_request *requests, gsize n_requests,
- GdkColor *color, guchar alpha, gboolean bold)
+ const GdkColor *color, guchar alpha, gboolean bold)
{
gsize i;
cairo_scaled_font_t *last_scaled_font = NULL;
@@ -1110,7 +1110,7 @@ _vte_pangocairo_draw_text (struct _vte_draw *draw,
void
_vte_draw_text (struct _vte_draw *draw,
struct _vte_draw_text_request *requests, gsize n_requests,
- GdkColor *color, guchar alpha, gboolean bold)
+ const GdkColor *color, guchar alpha, gboolean bold)
{
g_return_if_fail (draw->started);
@@ -1165,7 +1165,7 @@ _vte_draw_has_char (struct _vte_draw *draw, vteunistr c, gboolean bold)
gboolean
_vte_draw_char (struct _vte_draw *draw,
struct _vte_draw_text_request *request,
- GdkColor *color, guchar alpha, gboolean bold)
+ const GdkColor *color, guchar alpha, gboolean bold)
{
gboolean has_char;
@@ -1185,7 +1185,7 @@ _vte_draw_char (struct _vte_draw *draw,
void
_vte_draw_draw_rectangle (struct _vte_draw *draw,
gint x, gint y, gint width, gint height,
- GdkColor *color, guchar alpha)
+ const GdkColor *color, guchar alpha)
{
g_return_if_fail (draw->started);
@@ -1205,7 +1205,7 @@ _vte_draw_draw_rectangle (struct _vte_draw *draw,
void
_vte_draw_fill_rectangle (struct _vte_draw *draw,
gint x, gint y, gint width, gint height,
- GdkColor *color, guchar alpha)
+ const GdkColor *color, guchar alpha)
{
g_return_if_fail (draw->started);
diff --git a/src/vtedraw.h b/src/vtedraw.h
index 56ef310..aa32c8b 100644
--- a/src/vtedraw.h
+++ b/src/vtedraw.h
@@ -97,19 +97,19 @@ int _vte_draw_get_char_width(struct _vte_draw *draw, vteunistr c, int columns,
void _vte_draw_text(struct _vte_draw *draw,
struct _vte_draw_text_request *requests, gsize n_requests,
- GdkColor *color, guchar alpha, gboolean);
+ const GdkColor *color, guchar alpha, gboolean);
gboolean _vte_draw_char(struct _vte_draw *draw,
struct _vte_draw_text_request *request,
- GdkColor *color, guchar alpha, gboolean bold);
+ const GdkColor *color, guchar alpha, gboolean bold);
gboolean _vte_draw_has_char(struct _vte_draw *draw, vteunistr c, gboolean bold);
void _vte_draw_fill_rectangle(struct _vte_draw *draw,
gint x, gint y, gint width, gint height,
- GdkColor *color, guchar alpha);
+ const GdkColor *color, guchar alpha);
void _vte_draw_draw_rectangle(struct _vte_draw *draw,
gint x, gint y, gint width, gint height,
- GdkColor *color, guchar alpha);
+ const GdkColor *color, guchar alpha);
G_END_DECLS