[tasks/gnome3: 14/14] koto-cell-renderer-pixbuf: update for new const attributes



commit b1639f43ba2971bcf5c47b03883ab2b5e2a2918f
Author: Ross Burton <ross linux intel com>
Date:   Wed Apr 27 19:43:36 2011 +0100

    koto-cell-renderer-pixbuf: update for new const attributes

 libkoto/koto-cell-renderer-pixbuf.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libkoto/koto-cell-renderer-pixbuf.c b/libkoto/koto-cell-renderer-pixbuf.c
index b0b84fd..9f5a05f 100644
--- a/libkoto/koto-cell-renderer-pixbuf.c
+++ b/libkoto/koto-cell-renderer-pixbuf.c
@@ -34,7 +34,7 @@ static guint signals[LAST_SIGNAL] = { 0 };
  * Utility function to determine if a point is inside a rectangle
  */
 G_GNUC_CONST static gboolean
-contains (GdkRectangle *rect, int x, int y)
+contains (const GdkRectangle *rect, int x, int y)
 {
   return (rect->x + rect->width) > x && rect->x <= x &&
     (rect->y + rect->height) > y && rect->y <= y;
@@ -44,8 +44,8 @@ static gboolean
 koto_cell_renderer_pixbuf_activate (GtkCellRenderer *cell,
                                     GdkEvent *event, GtkWidget *widget,
                                     const gchar *path,
-                                    GdkRectangle *background_area,
-                                    GdkRectangle *cell_area,
+                                    const GdkRectangle *background_area,
+                                    const GdkRectangle *cell_area,
                                     GtkCellRendererState flags)
 {
   gdouble x, y;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]