diff options
author | Benjamin Otte <otte@redhat.com> | 2011-05-25 20:42:27 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-06-02 02:03:50 +0200 |
commit | b0616c82252ccfd3064dd23fbd9352c343b1ca05 (patch) | |
tree | ae0194d8533f83bd241972273a0a0be1d7701e1d /gtk/gtkwidgetpath.h | |
parent | 60081644aee42a83cc12b7ac2952bf79ba58fe31 (diff) | |
download | gtk+-b0616c82252ccfd3064dd23fbd9352c343b1ca05.tar.gz |
API: Add gtk_widget_path_append_for_widget()
Includes a bunch of header shuffling so we can use GtkWidget* in
gtkwidgetpath.h
Diffstat (limited to 'gtk/gtkwidgetpath.h')
-rw-r--r-- | gtk/gtkwidgetpath.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkwidgetpath.h b/gtk/gtkwidgetpath.h index c33b059e4b..e44824fc52 100644 --- a/gtk/gtkwidgetpath.h +++ b/gtk/gtkwidgetpath.h @@ -31,6 +31,10 @@ G_BEGIN_DECLS typedef struct _GtkWidgetPath GtkWidgetPath; +/* We make this forward declaration here, since gtkwidget.h includes us. + */ +typedef struct _GtkWidget GtkWidget; + #define GTK_TYPE_WIDGET_PATH (gtk_widget_path_get_type ()) GType gtk_widget_path_get_type (void) G_GNUC_CONST; @@ -46,6 +50,9 @@ gint gtk_widget_path_append_type (GtkWidgetPath *path, GType type); void gtk_widget_path_prepend_type (GtkWidgetPath *path, GType type); +/* gtk_widget_path_append_for_widget() is declared in gtkwidget.c */ +gint gtk_widget_path_append_for_widget (GtkWidgetPath *path, + GtkWidget *widget); GType gtk_widget_path_iter_get_object_type (const GtkWidgetPath *path, gint pos); |