PATCH: missing const in gtkcolorsel.[ch]



Hi!

is it ok, if I commit this to gtk-1-2 and HEAD?


Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk+/ChangeLog,v
retrieving revision 1.1061.2.97
diff -u -u -r1.1061.2.97 ChangeLog
--- ChangeLog	1999/07/30 17:12:47	1.1061.2.97
+++ ChangeLog	1999/08/04 09:54:31
@@ -1,3 +1,8 @@
+1999-08-04  Herbert Valerio Riedel  <hvr@hvrlab.dhs.org>
+
+	* gtk/gtkcolorsel.[ch] (gtk_color_selection_set_color): 
+	made second argument const
+
 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
 
 	* gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
Index: gtk/gtkcolorsel.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcolorsel.c,v
retrieving revision 1.40.2.2
diff -u -u -r1.40.2.2 gtkcolorsel.c
--- gtk/gtkcolorsel.c	1999/06/09 09:07:26	1.40.2.2
+++ gtk/gtkcolorsel.c	1999/08/04 09:54:33
@@ -530,7 +530,7 @@
 
 void
 gtk_color_selection_set_color (GtkColorSelection *colorsel,
-			       gdouble           *color)
+			       const gdouble     *color)
 {
   gint n, i = 0;
 
Index: gtk/gtkcolorsel.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcolorsel.h,v
retrieving revision 1.7.2.1
diff -u -u -r1.7.2.1 gtkcolorsel.h
--- gtk/gtkcolorsel.h	1999/06/09 09:07:27	1.7.2.1
+++ gtk/gtkcolorsel.h	1999/08/04 09:54:33
@@ -136,7 +136,7 @@
                                                   gint                   use_opacity);
 
 void       gtk_color_selection_set_color         (GtkColorSelection     *colorsel,
-					          gdouble               *color);
+					          const gdouble         *color);
 
 void       gtk_color_selection_get_color         (GtkColorSelection     *colorsel,
                                                   gdouble               *color);

-- 
"First they ignore you, then they laugh at you,
 then they fight you, then you win." -- Gandhi (?) 



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