[gtk+] gtk: Make region argument to gtk_widget_queue_draw_region() const



commit 9b93ca2848e2c4f98c29c41491923edcb102b3de
Author: Benjamin Otte <otte redhat com>
Date:   Mon Feb 14 19:10:39 2011 +0100

    gtk: Make region argument to gtk_widget_queue_draw_region() const

 gtk/gtkwidget.c |    4 ++--
 gtk/gtkwidget.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 10f9eff..5ec6f44 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4478,8 +4478,8 @@ gtk_widget_unrealize (GtkWidget *widget)
  * Since: 3.0
  **/
 void
-gtk_widget_queue_draw_region (GtkWidget      *widget,
-                              cairo_region_t *region)
+gtk_widget_queue_draw_region (GtkWidget            *widget,
+                              const cairo_region_t *region)
 {
   GtkWidgetPrivate *priv;
   GtkWidget *w;
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index c391b22..49fde65 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -477,7 +477,7 @@ void	   gtk_widget_queue_draw_area	  (GtkWidget	       *widget,
 					   gint                 width,
 					   gint                 height);
 void	   gtk_widget_queue_draw_region   (GtkWidget	       *widget,
-                                           cairo_region_t      *region);
+                                           const cairo_region_t*region);
 void	   gtk_widget_queue_resize	  (GtkWidget	       *widget);
 void	   gtk_widget_queue_resize_no_redraw (GtkWidget *widget);
 #ifndef GTK_DISABLE_DEPRECATED



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