Modified Files: gtkclist.c gtkclist.h gtkctree.c gtkctree.h gtknotebook.c

Modified Files:
 	gtkclist.c gtkclist.h gtkctree.c gtkctree.h gtknotebook.c
 	gtknotebook.h gtkrc.c gtkrc.h
 add const in some useful places
This commit is contained in:
jaycox 1998-11-23 13:53:25 +00:00
parent 72bd1c5859
commit 47b3584d36
8 changed files with 36 additions and 36 deletions

View File

@ -937,7 +937,7 @@ gtk_clist_init (GtkCList *clist)
void void
gtk_clist_construct (GtkCList *clist, gtk_clist_construct (GtkCList *clist,
gint columns, gint columns,
gchar *titles[]) const gchar *titles[])
{ {
g_return_if_fail (clist != NULL); g_return_if_fail (clist != NULL);
g_return_if_fail (GTK_IS_CLIST (clist)); g_return_if_fail (GTK_IS_CLIST (clist));
@ -1008,7 +1008,7 @@ gtk_clist_new (gint columns)
GtkWidget* GtkWidget*
gtk_clist_new_with_titles (gint columns, gtk_clist_new_with_titles (gint columns,
gchar *titles[]) const gchar *titles[])
{ {
GtkWidget *widget; GtkWidget *widget;
@ -2522,8 +2522,8 @@ cell_size_request (GtkCList *clist,
* gtk_clist_clear * gtk_clist_clear
*/ */
gint gint
gtk_clist_prepend (GtkCList *clist, gtk_clist_prepend (GtkCList *clist,
gchar *text[]) const gchar *text[])
{ {
g_return_val_if_fail (clist != NULL, -1); g_return_val_if_fail (clist != NULL, -1);
g_return_val_if_fail (GTK_IS_CLIST (clist), -1); g_return_val_if_fail (GTK_IS_CLIST (clist), -1);
@ -2533,8 +2533,8 @@ gtk_clist_prepend (GtkCList *clist,
} }
gint gint
gtk_clist_append (GtkCList *clist, gtk_clist_append (GtkCList *clist,
gchar *text[]) const gchar *text[])
{ {
g_return_val_if_fail (clist != NULL, -1); g_return_val_if_fail (clist != NULL, -1);
g_return_val_if_fail (GTK_IS_CLIST (clist), -1); g_return_val_if_fail (GTK_IS_CLIST (clist), -1);
@ -2544,9 +2544,9 @@ gtk_clist_append (GtkCList *clist,
} }
gint gint
gtk_clist_insert (GtkCList *clist, gtk_clist_insert (GtkCList *clist,
gint row, gint row,
gchar *text[]) const gchar *text[])
{ {
g_return_val_if_fail (clist != NULL, -1); g_return_val_if_fail (clist != NULL, -1);
g_return_val_if_fail (GTK_IS_CLIST (clist), -1); g_return_val_if_fail (GTK_IS_CLIST (clist), -1);

View File

@ -378,12 +378,12 @@ GtkType gtk_clist_get_type (void);
/* constructors useful for gtk-- wrappers */ /* constructors useful for gtk-- wrappers */
void gtk_clist_construct (GtkCList *clist, void gtk_clist_construct (GtkCList *clist,
gint columns, gint columns,
gchar *titles[]); const gchar *titles[]);
/* create a new GtkCList */ /* create a new GtkCList */
GtkWidget* gtk_clist_new (gint columns); GtkWidget* gtk_clist_new (gint columns);
GtkWidget* gtk_clist_new_with_titles (gint columns, GtkWidget* gtk_clist_new_with_titles (gint columns,
gchar *titles[]); const gchar *titles[]);
/* set adjustments of clist */ /* set adjustments of clist */
void gtk_clist_set_hadjustment (GtkCList *clist, void gtk_clist_set_hadjustment (GtkCList *clist,
@ -604,17 +604,17 @@ gboolean gtk_clist_get_selectable (GtkCList *clist,
/* prepend/append returns the index of the row you just added, /* prepend/append returns the index of the row you just added,
* making it easier to append and modify a row * making it easier to append and modify a row
*/ */
gint gtk_clist_prepend (GtkCList *clist, gint gtk_clist_prepend (GtkCList *clist,
gchar *text[]); const gchar *text[]);
gint gtk_clist_append (GtkCList *clist, gint gtk_clist_append (GtkCList *clist,
gchar *text[]); const gchar *text[]);
/* inserts a row at index row and returns the row where it was /* inserts a row at index row and returns the row where it was
* actually inserted (may be different from "row" in auto_sort mode) * actually inserted (may be different from "row" in auto_sort mode)
*/ */
gint gtk_clist_insert (GtkCList *clist, gint gtk_clist_insert (GtkCList *clist,
gint row, gint row,
gchar *text[]); const gchar *text[]);
/* removes row at index row */ /* removes row at index row */
void gtk_clist_remove (GtkCList *clist, void gtk_clist_remove (GtkCList *clist,

View File

@ -3880,10 +3880,10 @@ ctree_is_hot_spot (GtkCTree *ctree,
***********************************************************/ ***********************************************************/
void void
gtk_ctree_construct (GtkCTree *ctree, gtk_ctree_construct (GtkCTree *ctree,
gint columns, gint columns,
gint tree_column, gint tree_column,
gchar *titles[]) const gchar *titles[])
{ {
GtkCList *clist; GtkCList *clist;
@ -3911,9 +3911,9 @@ gtk_ctree_construct (GtkCTree *ctree,
} }
GtkWidget * GtkWidget *
gtk_ctree_new_with_titles (gint columns, gtk_ctree_new_with_titles (gint columns,
gint tree_column, gint tree_column,
gchar *titles[]) const gchar *titles[])
{ {
GtkWidget *widget; GtkWidget *widget;

View File

@ -177,10 +177,10 @@ GtkType gtk_ctree_get_type (void);
void gtk_ctree_construct (GtkCTree *ctree, void gtk_ctree_construct (GtkCTree *ctree,
gint columns, gint columns,
gint tree_column, gint tree_column,
gchar *titles[]); const gchar *titles[]);
GtkWidget * gtk_ctree_new_with_titles (gint columns, GtkWidget * gtk_ctree_new_with_titles (gint columns,
gint tree_column, gint tree_column,
gchar *titles[]); const gchar *titles[]);
GtkWidget * gtk_ctree_new (gint columns, GtkWidget * gtk_ctree_new (gint columns,
gint tree_column); gint tree_column);
GtkCTreeNode * gtk_ctree_insert_node (GtkCTree *ctree, GtkCTreeNode * gtk_ctree_insert_node (GtkCTree *ctree,

View File

@ -3925,7 +3925,7 @@ gtk_notebook_set_tab_label (GtkNotebook *notebook,
void void
gtk_notebook_set_tab_label_text (GtkNotebook *notebook, gtk_notebook_set_tab_label_text (GtkNotebook *notebook,
GtkWidget *child, GtkWidget *child,
gchar *tab_text) const gchar *tab_text)
{ {
GtkWidget *tab_label = NULL; GtkWidget *tab_label = NULL;
@ -4000,7 +4000,7 @@ gtk_notebook_set_menu_label (GtkNotebook *notebook,
void void
gtk_notebook_set_menu_label_text (GtkNotebook *notebook, gtk_notebook_set_menu_label_text (GtkNotebook *notebook,
GtkWidget *child, GtkWidget *child,
gchar *menu_text) const gchar *menu_text)
{ {
GtkWidget *menu_label = NULL; GtkWidget *menu_label = NULL;

View File

@ -179,7 +179,7 @@ void gtk_notebook_set_tab_label (GtkNotebook *notebook,
GtkWidget *tab_label); GtkWidget *tab_label);
void gtk_notebook_set_tab_label_text (GtkNotebook *notebook, void gtk_notebook_set_tab_label_text (GtkNotebook *notebook,
GtkWidget *child, GtkWidget *child,
gchar *tab_text); const gchar *tab_text);
GtkWidget * gtk_notebook_query_menu_label (GtkNotebook *notebook, GtkWidget * gtk_notebook_query_menu_label (GtkNotebook *notebook,
GtkWidget *child); GtkWidget *child);
void gtk_notebook_set_menu_label (GtkNotebook *notebook, void gtk_notebook_set_menu_label (GtkNotebook *notebook,
@ -187,7 +187,7 @@ void gtk_notebook_set_menu_label (GtkNotebook *notebook,
GtkWidget *menu_label); GtkWidget *menu_label);
void gtk_notebook_set_menu_label_text (GtkNotebook *notebook, void gtk_notebook_set_menu_label_text (GtkNotebook *notebook,
GtkWidget *child, GtkWidget *child,
gchar *menu_text); const gchar *menu_text);
void gtk_notebook_query_tab_label_packing (GtkNotebook *notebook, void gtk_notebook_query_tab_label_packing (GtkNotebook *notebook,
GtkWidget *child, GtkWidget *child,
gboolean *expand, gboolean *expand,

View File

@ -1359,7 +1359,7 @@ gtk_rc_parse_bg_pixmap (GScanner *scanner,
gchar* gchar*
gtk_rc_find_pixmap_in_path (GScanner *scanner, gtk_rc_find_pixmap_in_path (GScanner *scanner,
gchar *pixmap_file) const gchar *pixmap_file)
{ {
gint i; gint i;
gint fd; gint fd;
@ -1392,7 +1392,7 @@ gtk_rc_find_pixmap_in_path (GScanner *scanner,
gchar* gchar*
gtk_rc_find_module_in_path (GScanner *scanner, gtk_rc_find_module_in_path (GScanner *scanner,
gchar *module_file) const gchar *module_file)
{ {
gint i; gint i;
gint fd; gint fd;

View File

@ -83,10 +83,10 @@ void gtk_rc_set_image_loader(GtkImageLoader loader);
GdkPixmap *gtk_rc_load_image (GdkColormap *colormap, GdkPixmap *gtk_rc_load_image (GdkColormap *colormap,
GdkColor *transparent_color, GdkColor *transparent_color,
const gchar *filename); const gchar *filename);
gchar *gtk_rc_find_pixmap_in_path (GScanner *scanner, gchar *gtk_rc_find_pixmap_in_path (GScanner *scanner,
gchar *pixmap_file); const gchar *pixmap_file);
gchar *gtk_rc_find_module_in_path (GScanner *scanner, gchar *gtk_rc_find_module_in_path (GScanner *scanner,
gchar *module_file); const gchar *module_file);
gchar *gtk_rc_get_theme_dir(void); gchar *gtk_rc_get_theme_dir(void);
gchar *gtk_rc_get_module_dir(void); gchar *gtk_rc_get_module_dir(void);