[vte] Add const to GdkColor
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] Add const to GdkColor
- Date: Tue, 12 Jan 2010 07:40:30 +0000 (UTC)
commit 1608eb418aeb23c7fd27814ba7148ae2708c8017
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue Jan 12 02:08:51 2010 -0500
Add const to GdkColor
src/vtedraw.c | 10 +++++-----
src/vtedraw.h | 8 ++++----
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]