forked from AuroraMiddleware/gtk
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:
parent
72bd1c5859
commit
47b3584d36
@ -937,7 +937,7 @@ gtk_clist_init (GtkCList *clist)
|
||||
void
|
||||
gtk_clist_construct (GtkCList *clist,
|
||||
gint columns,
|
||||
gchar *titles[])
|
||||
const gchar *titles[])
|
||||
{
|
||||
g_return_if_fail (clist != NULL);
|
||||
g_return_if_fail (GTK_IS_CLIST (clist));
|
||||
@ -1008,7 +1008,7 @@ gtk_clist_new (gint columns)
|
||||
|
||||
GtkWidget*
|
||||
gtk_clist_new_with_titles (gint columns,
|
||||
gchar *titles[])
|
||||
const gchar *titles[])
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
||||
@ -2522,8 +2522,8 @@ cell_size_request (GtkCList *clist,
|
||||
* gtk_clist_clear
|
||||
*/
|
||||
gint
|
||||
gtk_clist_prepend (GtkCList *clist,
|
||||
gchar *text[])
|
||||
gtk_clist_prepend (GtkCList *clist,
|
||||
const gchar *text[])
|
||||
{
|
||||
g_return_val_if_fail (clist != NULL, -1);
|
||||
g_return_val_if_fail (GTK_IS_CLIST (clist), -1);
|
||||
@ -2533,8 +2533,8 @@ gtk_clist_prepend (GtkCList *clist,
|
||||
}
|
||||
|
||||
gint
|
||||
gtk_clist_append (GtkCList *clist,
|
||||
gchar *text[])
|
||||
gtk_clist_append (GtkCList *clist,
|
||||
const gchar *text[])
|
||||
{
|
||||
g_return_val_if_fail (clist != NULL, -1);
|
||||
g_return_val_if_fail (GTK_IS_CLIST (clist), -1);
|
||||
@ -2544,9 +2544,9 @@ gtk_clist_append (GtkCList *clist,
|
||||
}
|
||||
|
||||
gint
|
||||
gtk_clist_insert (GtkCList *clist,
|
||||
gint row,
|
||||
gchar *text[])
|
||||
gtk_clist_insert (GtkCList *clist,
|
||||
gint row,
|
||||
const gchar *text[])
|
||||
{
|
||||
g_return_val_if_fail (clist != NULL, -1);
|
||||
g_return_val_if_fail (GTK_IS_CLIST (clist), -1);
|
||||
|
@ -378,12 +378,12 @@ GtkType gtk_clist_get_type (void);
|
||||
/* constructors useful for gtk-- wrappers */
|
||||
void gtk_clist_construct (GtkCList *clist,
|
||||
gint columns,
|
||||
gchar *titles[]);
|
||||
const gchar *titles[]);
|
||||
|
||||
/* create a new GtkCList */
|
||||
GtkWidget* gtk_clist_new (gint columns);
|
||||
GtkWidget* gtk_clist_new_with_titles (gint columns,
|
||||
gchar *titles[]);
|
||||
const gchar *titles[]);
|
||||
|
||||
/* set adjustments of 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,
|
||||
* making it easier to append and modify a row
|
||||
*/
|
||||
gint gtk_clist_prepend (GtkCList *clist,
|
||||
gchar *text[]);
|
||||
gint gtk_clist_append (GtkCList *clist,
|
||||
gchar *text[]);
|
||||
gint gtk_clist_prepend (GtkCList *clist,
|
||||
const gchar *text[]);
|
||||
gint gtk_clist_append (GtkCList *clist,
|
||||
const gchar *text[]);
|
||||
|
||||
/* inserts a row at index row and returns the row where it was
|
||||
* actually inserted (may be different from "row" in auto_sort mode)
|
||||
*/
|
||||
gint gtk_clist_insert (GtkCList *clist,
|
||||
gint row,
|
||||
gchar *text[]);
|
||||
gint gtk_clist_insert (GtkCList *clist,
|
||||
gint row,
|
||||
const gchar *text[]);
|
||||
|
||||
/* removes row at index row */
|
||||
void gtk_clist_remove (GtkCList *clist,
|
||||
|
@ -3880,10 +3880,10 @@ ctree_is_hot_spot (GtkCTree *ctree,
|
||||
***********************************************************/
|
||||
|
||||
void
|
||||
gtk_ctree_construct (GtkCTree *ctree,
|
||||
gint columns,
|
||||
gint tree_column,
|
||||
gchar *titles[])
|
||||
gtk_ctree_construct (GtkCTree *ctree,
|
||||
gint columns,
|
||||
gint tree_column,
|
||||
const gchar *titles[])
|
||||
{
|
||||
GtkCList *clist;
|
||||
|
||||
@ -3911,9 +3911,9 @@ gtk_ctree_construct (GtkCTree *ctree,
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
gtk_ctree_new_with_titles (gint columns,
|
||||
gint tree_column,
|
||||
gchar *titles[])
|
||||
gtk_ctree_new_with_titles (gint columns,
|
||||
gint tree_column,
|
||||
const gchar *titles[])
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
||||
|
@ -177,10 +177,10 @@ GtkType gtk_ctree_get_type (void);
|
||||
void gtk_ctree_construct (GtkCTree *ctree,
|
||||
gint columns,
|
||||
gint tree_column,
|
||||
gchar *titles[]);
|
||||
const gchar *titles[]);
|
||||
GtkWidget * gtk_ctree_new_with_titles (gint columns,
|
||||
gint tree_column,
|
||||
gchar *titles[]);
|
||||
const gchar *titles[]);
|
||||
GtkWidget * gtk_ctree_new (gint columns,
|
||||
gint tree_column);
|
||||
GtkCTreeNode * gtk_ctree_insert_node (GtkCTree *ctree,
|
||||
|
@ -3925,7 +3925,7 @@ gtk_notebook_set_tab_label (GtkNotebook *notebook,
|
||||
void
|
||||
gtk_notebook_set_tab_label_text (GtkNotebook *notebook,
|
||||
GtkWidget *child,
|
||||
gchar *tab_text)
|
||||
const gchar *tab_text)
|
||||
{
|
||||
GtkWidget *tab_label = NULL;
|
||||
|
||||
@ -4000,7 +4000,7 @@ gtk_notebook_set_menu_label (GtkNotebook *notebook,
|
||||
void
|
||||
gtk_notebook_set_menu_label_text (GtkNotebook *notebook,
|
||||
GtkWidget *child,
|
||||
gchar *menu_text)
|
||||
const gchar *menu_text)
|
||||
{
|
||||
GtkWidget *menu_label = NULL;
|
||||
|
||||
|
@ -179,7 +179,7 @@ void gtk_notebook_set_tab_label (GtkNotebook *notebook,
|
||||
GtkWidget *tab_label);
|
||||
void gtk_notebook_set_tab_label_text (GtkNotebook *notebook,
|
||||
GtkWidget *child,
|
||||
gchar *tab_text);
|
||||
const gchar *tab_text);
|
||||
GtkWidget * gtk_notebook_query_menu_label (GtkNotebook *notebook,
|
||||
GtkWidget *child);
|
||||
void gtk_notebook_set_menu_label (GtkNotebook *notebook,
|
||||
@ -187,7 +187,7 @@ void gtk_notebook_set_menu_label (GtkNotebook *notebook,
|
||||
GtkWidget *menu_label);
|
||||
void gtk_notebook_set_menu_label_text (GtkNotebook *notebook,
|
||||
GtkWidget *child,
|
||||
gchar *menu_text);
|
||||
const gchar *menu_text);
|
||||
void gtk_notebook_query_tab_label_packing (GtkNotebook *notebook,
|
||||
GtkWidget *child,
|
||||
gboolean *expand,
|
||||
|
@ -1359,7 +1359,7 @@ gtk_rc_parse_bg_pixmap (GScanner *scanner,
|
||||
|
||||
gchar*
|
||||
gtk_rc_find_pixmap_in_path (GScanner *scanner,
|
||||
gchar *pixmap_file)
|
||||
const gchar *pixmap_file)
|
||||
{
|
||||
gint i;
|
||||
gint fd;
|
||||
@ -1392,7 +1392,7 @@ gtk_rc_find_pixmap_in_path (GScanner *scanner,
|
||||
|
||||
gchar*
|
||||
gtk_rc_find_module_in_path (GScanner *scanner,
|
||||
gchar *module_file)
|
||||
const gchar *module_file)
|
||||
{
|
||||
gint i;
|
||||
gint fd;
|
||||
|
@ -83,10 +83,10 @@ void gtk_rc_set_image_loader(GtkImageLoader loader);
|
||||
GdkPixmap *gtk_rc_load_image (GdkColormap *colormap,
|
||||
GdkColor *transparent_color,
|
||||
const gchar *filename);
|
||||
gchar *gtk_rc_find_pixmap_in_path (GScanner *scanner,
|
||||
gchar *pixmap_file);
|
||||
gchar *gtk_rc_find_pixmap_in_path (GScanner *scanner,
|
||||
const gchar *pixmap_file);
|
||||
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_module_dir(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user