From 6d1cf7682295a80e41731d6b1fe8c0cc8db02891 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 19 Nov 2010 18:59:49 +0100 Subject: GtkWidgetPath: Make iter API deal with gints. now gtk_widget_path_iter_* takes gints instead of guints, and also accept numbers == -1 or > path_length for the path head. --- gtk/gtkwidgetpath.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'gtk/gtkwidgetpath.h') diff --git a/gtk/gtkwidgetpath.h b/gtk/gtkwidgetpath.h index 18ee05f290..f6a7d72b89 100644 --- a/gtk/gtkwidgetpath.h +++ b/gtk/gtkwidgetpath.h @@ -33,67 +33,67 @@ GtkWidgetPath * gtk_widget_path_new (void); GtkWidgetPath * gtk_widget_path_copy (const GtkWidgetPath *path); void gtk_widget_path_free (GtkWidgetPath *path); -guint gtk_widget_path_length (const GtkWidgetPath *path); +gint gtk_widget_path_length (const GtkWidgetPath *path); -guint gtk_widget_path_append_type (GtkWidgetPath *path, +gint gtk_widget_path_append_type (GtkWidgetPath *path, GType type); void gtk_widget_path_prepend_type (GtkWidgetPath *path, GType type); GType gtk_widget_path_iter_get_widget_type (const GtkWidgetPath *path, - guint pos); + gint pos); void gtk_widget_path_iter_set_widget_type (GtkWidgetPath *path, - guint pos, + gint pos, GType type); G_CONST_RETURN gchar * gtk_widget_path_iter_get_name (const GtkWidgetPath *path, - guint pos); + gint pos); void gtk_widget_path_iter_set_name (GtkWidgetPath *path, - guint pos, + gint pos, const gchar *name); gboolean gtk_widget_path_iter_has_name (const GtkWidgetPath *path, - guint pos, + gint pos, const gchar *name); gboolean gtk_widget_path_iter_has_qname (const GtkWidgetPath *path, - guint pos, + gint pos, GQuark qname); void gtk_widget_path_iter_add_class (GtkWidgetPath *path, - guint pos, + gint pos, const gchar *name); void gtk_widget_path_iter_remove_class (GtkWidgetPath *path, - guint pos, + gint pos, const gchar *name); void gtk_widget_path_iter_clear_classes (GtkWidgetPath *path, - guint pos); + gint pos); GSList * gtk_widget_path_iter_list_classes (const GtkWidgetPath *path, - guint pos); + gint pos); gboolean gtk_widget_path_iter_has_class (const GtkWidgetPath *path, - guint pos, + gint pos, const gchar *name); gboolean gtk_widget_path_iter_has_qclass (const GtkWidgetPath *path, - guint pos, + gint pos, GQuark qname); void gtk_widget_path_iter_add_region (GtkWidgetPath *path, - guint pos, + gint pos, const gchar *name, GtkRegionFlags flags); void gtk_widget_path_iter_remove_region (GtkWidgetPath *path, - guint pos, + gint pos, const gchar *name); void gtk_widget_path_iter_clear_regions (GtkWidgetPath *path, - guint pos); + gint pos); GSList * gtk_widget_path_iter_list_regions (const GtkWidgetPath *path, - guint pos); + gint pos); gboolean gtk_widget_path_iter_has_region (const GtkWidgetPath *path, - guint pos, + gint pos, const gchar *name, GtkRegionFlags *flags); gboolean gtk_widget_path_iter_has_qregion (const GtkWidgetPath *path, - guint pos, + gint pos, GQuark qname, GtkRegionFlags *flags); -- cgit v1.2.1