summaryrefslogtreecommitdiff
path: root/gtk/gtkwidgetpath.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-04-21 01:27:46 +0200
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:37:07 +0100
commit71949e05c47fdce1f90e8515bf733b3a315fae5f (patch)
tree45a48d5a13a6c22accc505448890e82be5e6b6b6 /gtk/gtkwidgetpath.h
parentf60e3f3a8afd00963d3cc810899aad5cab39f7ea (diff)
downloadgtk+-71949e05c47fdce1f90e8515bf733b3a315fae5f.tar.gz
Refurbish GtkWidgetPath API.
The foreach() function is now gone, there's now API to get GTypes and names from the position in the path.
Diffstat (limited to 'gtk/gtkwidgetpath.h')
-rw-r--r--gtk/gtkwidgetpath.h32
1 files changed, 19 insertions, 13 deletions
diff --git a/gtk/gtkwidgetpath.h b/gtk/gtkwidgetpath.h
index 664562cbc4..3846988fd2 100644
--- a/gtk/gtkwidgetpath.h
+++ b/gtk/gtkwidgetpath.h
@@ -21,31 +21,37 @@
#define __GTK_WIDGET_PATH_H__
#include <glib-object.h>
+#include "gtkenums.h"
G_BEGIN_DECLS
typedef struct GtkWidgetPath GtkWidgetPath;
-typedef gboolean (* GtkWidgetPathForeachFunc) (GType type,
- const gchar *name,
- gpointer user_data);
GtkWidgetPath * gtk_widget_path_new (void);
-void gtk_widget_path_prepend_widget_desc (GtkWidgetPath *path,
- GType type,
- const gchar *name);
+GtkWidgetPath * gtk_widget_path_copy (const GtkWidgetPath *path);
+void gtk_widget_path_free (GtkWidgetPath *path);
-GtkWidgetPath * gtk_widget_path_copy (GtkWidgetPath *path);
-void gtk_widget_path_free (GtkWidgetPath *path);
+guint gtk_widget_path_length (GtkWidgetPath *path);
-gboolean gtk_widget_path_has_parent (GtkWidgetPath *path,
- GType type);
+guint gtk_widget_path_prepend_type (GtkWidgetPath *path,
+ GType type);
-void gtk_widget_path_foreach (GtkWidgetPath *path,
- GtkWidgetPathForeachFunc func,
- gpointer user_data);
+GType gtk_widget_path_get_element_type (GtkWidgetPath *path,
+ guint pos);
+void gtk_widget_path_set_element_type (GtkWidgetPath *path,
+ guint pos,
+ GType type);
+G_CONST_RETURN gchar * gtk_widget_path_get_element_name (GtkWidgetPath *path,
+ guint pos);
+void gtk_widget_path_set_element_name (GtkWidgetPath *path,
+ guint pos,
+ const gchar *name);
+
+gboolean gtk_widget_path_has_parent (const GtkWidgetPath *path,
+ GType type);
G_END_DECLS