diff options
author | Sven Herzberg <herzi@gnome-de.org> | 2010-08-05 16:21:12 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:37:32 +0100 |
commit | 27bc581dca3bdabcbfe708dfbb0eec64db016b6f (patch) | |
tree | c412ab755910a46f90d847b684c781b959488507 /gtk/gtkwidgetpath.c | |
parent | b6226cb7b943be3ffc13cceca328f840b1c85def (diff) | |
download | gtk+-27bc581dca3bdabcbfe708dfbb0eec64db016b6f.tar.gz |
GtkWidgetPath: properly use const
* gtk/gtkwidgetpath.c,
* gtk/gtkwidgetpath.h: use const where possible
Diffstat (limited to 'gtk/gtkwidgetpath.c')
-rw-r--r-- | gtk/gtkwidgetpath.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c index 2e78b7cdd5..29b019ed36 100644 --- a/gtk/gtkwidgetpath.c +++ b/gtk/gtkwidgetpath.c @@ -114,7 +114,7 @@ gtk_widget_path_free (GtkWidgetPath *path) } guint -gtk_widget_path_length (GtkWidgetPath *path) +gtk_widget_path_length (const GtkWidgetPath *path) { g_return_val_if_fail (path != NULL, 0); @@ -137,8 +137,8 @@ gtk_widget_path_prepend_type (GtkWidgetPath *path, } GType -gtk_widget_path_get_element_type (GtkWidgetPath *path, - guint pos) +gtk_widget_path_get_element_type (const GtkWidgetPath *path, + guint pos) { GtkPathElement *elem; @@ -165,8 +165,8 @@ gtk_widget_path_set_element_type (GtkWidgetPath *path, } G_CONST_RETURN gchar * -gtk_widget_path_get_element_name (GtkWidgetPath *path, - guint pos) +gtk_widget_path_get_element_name (const GtkWidgetPath *path, + guint pos) { GtkPathElement *elem; @@ -254,8 +254,8 @@ gtk_widget_path_iter_clear_regions (GtkWidgetPath *path, } GSList * -gtk_widget_path_iter_list_regions (GtkWidgetPath *path, - guint pos) +gtk_widget_path_iter_list_regions (const GtkWidgetPath *path, + guint pos) { GtkPathElement *elem; GHashTableIter iter; @@ -279,10 +279,10 @@ gtk_widget_path_iter_list_regions (GtkWidgetPath *path, } gboolean -gtk_widget_path_iter_has_region (GtkWidgetPath *path, - guint pos, - const gchar *name, - GtkChildClassFlags *flags) +gtk_widget_path_iter_has_region (const GtkWidgetPath *path, + guint pos, + const gchar *name, + GtkChildClassFlags *flags) { GtkPathElement *elem; gpointer value; |