[PATCH] gtk_widget_modify_font constness fix



Hi,

may I commit this patch that changes the second argument of
gtk_widget_modify_font() to 'const PangoFontDescription *' ?

--Daniel

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk+/ChangeLog,v
retrieving revision 1.2716
diff -u -3 -r1.2716 ChangeLog
--- ChangeLog	2001/12/16 17:00:52	1.2716
+++ ChangeLog	2001/12/17 14:48:32
@@ -1,3 +1,8 @@
+2001-12-17  Daniel Elstner  <daniel elstner gmx net>
+
+	* gtk/gtkwidget.[ch] (gtk_widget_modify_font):
+	Add 'const' to PangoFontDescription* argument.
+
 2001-12-16  Kjartan Maraas  <kmaraas gnome org>
 
 	* gtk/gtkprogressbar.c: Fix a typo.
Index: gtk/gtkwidget.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkwidget.c,v
retrieving revision 1.275
diff -u -3 -r1.275 gtkwidget.c
--- gtk/gtkwidget.c	2001/12/13 19:51:19	1.275
+++ gtk/gtkwidget.c	2001/12/17 14:48:40
@@ -4090,8 +4090,8 @@
  * untouched. See also gtk_widget_modify_style().
  **/
 void
-gtk_widget_modify_font (GtkWidget            *widget,
-			PangoFontDescription *font_desc)
+gtk_widget_modify_font (GtkWidget                  *widget,
+			const PangoFontDescription *font_desc)
 {
   GtkRcStyle *rc_style;
 
Index: gtk/gtkwidget.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkwidget.h,v
retrieving revision 1.126
diff -u -3 -r1.126 gtkwidget.h
--- gtk/gtkwidget.h	2001/11/20 23:43:02	1.126
+++ gtk/gtkwidget.h	2001/12/17 14:48:41
@@ -639,8 +639,8 @@
 void        gtk_widget_modify_base        (GtkWidget            *widget,
 					   GtkStateType          state,
 					   GdkColor             *color);
-void        gtk_widget_modify_font        (GtkWidget            *widget,
-					   PangoFontDescription *font_desc);
+void        gtk_widget_modify_font        (GtkWidget                  *widget,
+					   const PangoFontDescription *font_desc);
 
 #ifndef GTK_DISABLE_DEPRECATED
 #define gtk_widget_set_rc_style(widget)          (gtk_widget_set_style (widget, NULL))


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