[PATCH] GtkCellRenderer* missing consts
- From: murrayc t-online de (Murray Cumming)
- To: gtk-devel-list <gtk-devel-list gnome org>
- Subject: [PATCH] GtkCellRenderer* missing consts
- Date: 31 Oct 2001 02:25:37 +0100
May I apply this patch? It adds const to gchar* signal parameters and
associated stuff.
--
Murray Cumming
murrayc usa net
www.murrayc.com
? gtk+.kdevprj
? cellrenderer_consts.diff
? demos/gtk-demo/20011001
? demos/gtk-demo/20010101
Index: gtk/gtkcellrenderer.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcellrenderer.c,v
retrieving revision 1.21
diff -u -u -p -r1.21 gtkcellrenderer.c
--- gtk/gtkcellrenderer.c 2001/09/25 16:44:38 1.21
+++ gtk/gtkcellrenderer.c 2001/10/31 00:10:43
@@ -411,7 +411,7 @@ gboolean
gtk_cell_renderer_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
- gchar *path,
+ const gchar *path,
GdkRectangle *background_area,
GdkRectangle *cell_area,
GtkCellRendererState flags)
@@ -451,7 +451,7 @@ GtkCellEditable *
gtk_cell_renderer_start_editing (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
- gchar *path,
+ const gchar *path,
GdkRectangle *background_area,
GdkRectangle *cell_area,
GtkCellRendererState flags)
Index: gtk/gtkcellrenderer.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcellrenderer.h,v
retrieving revision 1.11
diff -u -u -p -r1.11 gtkcellrenderer.h
--- gtk/gtkcellrenderer.h 2001/09/18 17:52:42 1.11
+++ gtk/gtkcellrenderer.h 2001/10/31 00:10:43
@@ -100,7 +100,7 @@ struct _GtkCellRendererClass
GtkCellEditable *(* start_editing) (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
- gchar *path,
+ const gchar *path,
GdkRectangle *background_area,
GdkRectangle *cell_area,
GtkCellRendererState flags);
@@ -125,14 +125,14 @@ void gtk_cell_renderer_rende
gboolean gtk_cell_renderer_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
- gchar *path,
+ const gchar *path,
GdkRectangle *background_area,
GdkRectangle *cell_area,
GtkCellRendererState flags);
GtkCellEditable *gtk_cell_renderer_start_editing (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
- gchar *path,
+ const gchar *path,
GdkRectangle *background_area,
GdkRectangle *cell_area,
GtkCellRendererState flags);
Index: gtk/gtkcellrenderertext.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcellrenderertext.c,v
retrieving revision 1.32
diff -u -u -p -r1.32 gtkcellrenderertext.c
--- gtk/gtkcellrenderertext.c 2001/10/23 16:02:15 1.32
+++ gtk/gtkcellrenderertext.c 2001/10/31 00:10:44
@@ -54,7 +54,7 @@ static void gtk_cell_renderer_text_rende
static GtkCellEditable *gtk_cell_renderer_text_start_editing (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
- gchar *path,
+ const gchar *path,
GdkRectangle *background_area,
GdkRectangle *cell_area,
GtkCellRendererState flags);
@@ -1316,7 +1316,7 @@ static void
gtk_cell_renderer_text_editing_done (GtkCellEditable *entry,
gpointer data)
{
- gchar *path;
+ const gchar *path;
const gchar *new_text;
path = g_object_get_data (G_OBJECT (entry), GTK_CELL_RENDERER_TEXT_PATH);
@@ -1329,7 +1329,7 @@ static GtkCellEditable *
gtk_cell_renderer_text_start_editing (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
- gchar *path,
+ const gchar *path,
GdkRectangle *background_area,
GdkRectangle *cell_area,
GtkCellRendererState flags)
Index: gtk/gtkcellrenderertext.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcellrenderertext.h,v
retrieving revision 1.9
diff -u -u -p -r1.9 gtkcellrenderertext.h
--- gtk/gtkcellrenderertext.h 2001/09/25 16:44:38 1.9
+++ gtk/gtkcellrenderertext.h 2001/10/31 00:10:44
@@ -81,8 +81,8 @@ struct _GtkCellRendererTextClass
GtkCellRendererClass parent_class;
void (* edited) (GtkCellRendererText *cell_renderer_text,
- gchar *path,
- gchar *new_text);
+ const gchar *path,
+ const gchar *new_text);
};
GtkType gtk_cell_renderer_text_get_type (void);
Index: gtk/gtkcellrenderertoggle.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcellrenderertoggle.c,v
retrieving revision 1.28
diff -u -u -p -r1.28 gtkcellrenderertoggle.c
--- gtk/gtkcellrenderertoggle.c 2001/10/28 21:15:33 1.28
+++ gtk/gtkcellrenderertoggle.c 2001/10/31 00:10:44
@@ -49,7 +49,7 @@ static void gtk_cell_renderer_toggle_ren
static gboolean gtk_cell_renderer_toggle_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
- gchar *path,
+ const gchar *path,
GdkRectangle *background_area,
GdkRectangle *cell_area,
guint flags);
@@ -338,7 +338,7 @@ static gint
gtk_cell_renderer_toggle_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
- gchar *path,
+ const gchar *path,
GdkRectangle *background_area,
GdkRectangle *cell_area,
guint flags)
@@ -401,7 +401,7 @@ gtk_cell_renderer_toggle_get_radio (GtkC
* gtk_cell_renderer_toggle_set_active().
*
* Return value: %TRUE if the cell renderer is active.
-
+ **/
gboolean
gtk_cell_renderer_toggle_get_active (GtkCellRendererToggle *toggle)
{
Index: gtk/gtkcellrenderertoggle.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcellrenderertoggle.h,v
retrieving revision 1.6
diff -u -u -p -r1.6 gtkcellrenderertoggle.h
--- gtk/gtkcellrenderertoggle.h 2001/09/25 16:44:38 1.6
+++ gtk/gtkcellrenderertoggle.h 2001/10/31 00:10:44
@@ -52,7 +52,7 @@ struct _GtkCellRendererToggleClass
GtkCellRendererClass parent_class;
void (* toggled) (GtkCellRendererToggle *cell_renderer_toggle,
- gchar *path);
+ const gchar *path);
};
GtkType gtk_cell_renderer_toggle_get_type (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]