diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-10-04 10:22:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-10-04 10:23:55 -0400 |
commit | 21eae6b6f385f64ebea0f4494a14bfd114050f66 (patch) | |
tree | fb1d79f08b0bbd42420073ca2757c7a81fff21fa /gtk/gtkcellrenderertoggle.c | |
parent | 8970b174dc274104ff86733a48b0e05e33791431 (diff) | |
download | gtk+-21eae6b6f385f64ebea0f4494a14bfd114050f66.tar.gz |
Make GdkRectangle arguments in GtkCellRenderer use const consistently
https://bugzilla.gnome.org/show_bug.cgi?id=630900
Diffstat (limited to 'gtk/gtkcellrenderertoggle.c')
-rw-r--r-- | gtk/gtkcellrenderertoggle.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c index d0e8f3aed1..e1aa78e03f 100644 --- a/gtk/gtkcellrenderertoggle.c +++ b/gtk/gtkcellrenderertoggle.c @@ -36,7 +36,7 @@ static void gtk_cell_renderer_toggle_set_property (GObject * GParamSpec *pspec); static void gtk_cell_renderer_toggle_get_size (GtkCellRenderer *cell, GtkWidget *widget, - GdkRectangle *cell_area, + const GdkRectangle *cell_area, gint *x_offset, gint *y_offset, gint *width, @@ -51,8 +51,8 @@ static gboolean gtk_cell_renderer_toggle_activate (GtkCellRenderer * GdkEvent *event, GtkWidget *widget, const gchar *path, - GdkRectangle *background_area, - GdkRectangle *cell_area, + const GdkRectangle *background_area, + const GdkRectangle *cell_area, GtkCellRendererState flags); @@ -271,13 +271,13 @@ gtk_cell_renderer_toggle_new (void) } static void -gtk_cell_renderer_toggle_get_size (GtkCellRenderer *cell, - GtkWidget *widget, - GdkRectangle *cell_area, - gint *x_offset, - gint *y_offset, - gint *width, - gint *height) +gtk_cell_renderer_toggle_get_size (GtkCellRenderer *cell, + GtkWidget *widget, + const GdkRectangle *cell_area, + gint *x_offset, + gint *y_offset, + gint *width, + gint *height) { GtkCellRendererTogglePrivate *priv; gint calc_width; @@ -337,7 +337,7 @@ gtk_cell_renderer_toggle_render (GtkCellRenderer *cell, GtkShadowType shadow; GtkStateType state = 0; - gtk_cell_renderer_toggle_get_size (cell, widget, (GdkRectangle *) cell_area, + gtk_cell_renderer_toggle_get_size (cell, widget, cell_area, &x_offset, &y_offset, &width, &height); gtk_cell_renderer_get_padding (cell, &xpad, &ypad); @@ -399,8 +399,8 @@ gtk_cell_renderer_toggle_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) { GtkCellRendererTogglePrivate *priv; |