diff options
author | Tim Janik <timj@gtk.org> | 1998-09-03 07:28:37 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-09-03 07:28:37 +0000 |
commit | 0f0d9509c061a1df2a6386e9ddc02ee4a921de26 (patch) | |
tree | fd6a814ccee786532644edf216b01467c70b3502 /gtk/gtkclist.c | |
parent | ebe76c752c982e361c481b743fa195618cc19b52 (diff) | |
download | gtk+-0f0d9509c061a1df2a6386e9ddc02ee4a921de26.tar.gz |
`const' fixups.merge-to-themes-2-4
Thu Sep 3 07:16:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkctree.h:
* gtk/gtkctree.c: `const' fixups.
* gtk/gtkclist.h:
* gtk/gtkclist.c: `const' fixups and some coding style adaptions.
* gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
if it is passed as NULL.
Diffstat (limited to 'gtk/gtkclist.c')
-rw-r--r-- | gtk/gtkclist.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 2a0776e1c1..720f7d6e49 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -285,23 +285,23 @@ static void hadjustment_value_changed (GtkAdjustment * adjustment, /* Memory Allocation/Distruction Routines */ static GtkCListColumn *columns_new (GtkCList * clist); -static void column_title_new (GtkCList * clist, - gint column, - gchar * title); +static void column_title_new (GtkCList *clist, + gint column, + const gchar *title); static void columns_delete (GtkCList * clist); static GtkCListRow *row_new (GtkCList * clist); static void row_delete (GtkCList * clist, GtkCListRow * clist_row); -static void set_cell_contents (GtkCList * clist, - GtkCListRow * clist_row, - gint column, - GtkCellType type, - gchar * text, - guint8 spacing, - GdkPixmap * pixmap, - GdkBitmap * mask); +static void set_cell_contents (GtkCList *clist, + GtkCListRow *clist_row, + gint column, + GtkCellType type, + const gchar *text, + guint8 spacing, + GdkPixmap *pixmap, + GdkBitmap *mask); static gint real_insert_row (GtkCList * clist, gint row, gchar * text[]); @@ -1074,9 +1074,9 @@ gtk_clist_column_titles_passive (GtkCList * clist) } void -gtk_clist_set_column_title (GtkCList * clist, - gint column, - gchar * title) +gtk_clist_set_column_title (GtkCList *clist, + gint column, + const gchar *title) { gint new_button = 0; GtkWidget *old_widget; @@ -1348,10 +1348,10 @@ gtk_clist_get_cell_type (GtkCList * clist, } void -gtk_clist_set_text (GtkCList * clist, - gint row, - gint column, - gchar * text) +gtk_clist_set_text (GtkCList *clist, + gint row, + gint column, + const gchar *text) { GtkCListRow *clist_row; @@ -1471,13 +1471,13 @@ gtk_clist_get_pixmap (GtkCList * clist, } void -gtk_clist_set_pixtext (GtkCList * clist, - gint row, - gint column, - gchar * text, - guint8 spacing, - GdkPixmap * pixmap, - GdkBitmap * mask) +gtk_clist_set_pixtext (GtkCList *clist, + gint row, + gint column, + const gchar *text, + guint8 spacing, + GdkPixmap *pixmap, + GdkBitmap *mask) { GtkCListRow *clist_row; @@ -4676,9 +4676,9 @@ columns_new (GtkCList * clist) } static void -column_title_new (GtkCList * clist, - gint column, - gchar * title) +column_title_new (GtkCList *clist, + gint column, + const gchar *title) { if (clist->column[column].title) g_free (clist->column[column].title); @@ -4741,14 +4741,14 @@ row_delete (GtkCList * clist, } static void -set_cell_contents (GtkCList * clist, - GtkCListRow * clist_row, - gint column, - GtkCellType type, - gchar * text, - guint8 spacing, - GdkPixmap * pixmap, - GdkBitmap * mask) +set_cell_contents (GtkCList *clist, + GtkCListRow *clist_row, + gint column, + GtkCellType type, + const gchar *text, + guint8 spacing, + GdkPixmap *pixmap, + GdkBitmap *mask) { g_return_if_fail (clist_row != NULL); |