summaryrefslogtreecommitdiff
path: root/gtk/gtkassistant.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-02-07 15:18:49 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-02-08 00:09:44 -0500
commitce60089f46e765265c51bd4e4372dadffb3b8e96 (patch)
treeeb28c20895969a358c697baddf06d29b0bb81f19 /gtk/gtkassistant.h
parentedd3f28a1d7713d77fa5267c8453b2001b79437f (diff)
downloadgtk+-ce60089f46e765265c51bd4e4372dadffb3b8e96.tar.gz
assistant: Convert child properties to a child meta object
Turn GtkAssistantPage into a public object holding the former child properties.
Diffstat (limited to 'gtk/gtkassistant.h')
-rw-r--r--gtk/gtkassistant.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtkassistant.h b/gtk/gtkassistant.h
index 5d5629a9f1..0a09b3162b 100644
--- a/gtk/gtkassistant.h
+++ b/gtk/gtkassistant.h
@@ -118,6 +118,16 @@ struct _GtkAssistantClass
void (*_gtk_reserved5) (void);
};
+#define GTK_TYPE_ASSISTANT_PAGE (gtk_assistant_page_get_type ())
+#define GTK_ASSISTANT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ASSISTANT_PAGE, GtkAssistantPage))
+#define GTK_ASSISTANT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ASSISTANT_PAGE, GtkAssistantPageClass))
+#define GTK_IS_ASSISTANT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ASSISTANT_PAGE))
+#define GTK_IS_ASSISTANT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ASSISTANT_PAGE))
+#define GTK_ASSISTANT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ASSISTANT_PAGE, GtkAssistantPageClass))
+
+typedef struct _GtkAssistantPage GtkAssistantPage;
+typedef struct _GtkAssistantPageClass GtkAssistantPageClass;
+
/**
* GtkAssistantPageFunc:
* @current_page: The page number used to calculate the next page.
@@ -133,6 +143,8 @@ struct _GtkAssistantClass
typedef gint (*GtkAssistantPageFunc) (gint current_page, gpointer data);
GDK_AVAILABLE_IN_ALL
+GType gtk_assistant_page_get_type (void) G_GNUC_CONST;
+GDK_AVAILABLE_IN_ALL
GType gtk_assistant_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL
GtkWidget *gtk_assistant_new (void);
@@ -209,6 +221,12 @@ void gtk_assistant_set_page_has_padding (GtkAssistant *assista
GDK_AVAILABLE_IN_ALL
gboolean gtk_assistant_get_page_has_padding (GtkAssistant *assistant,
GtkWidget *page);
+GDK_AVAILABLE_IN_ALL
+GtkAssistantPage * gtk_assistant_get_page (GtkAssistant *assistant,
+ GtkWidget *child);
+GDK_AVAILABLE_IN_ALL
+GtkWidget * gtk_assistant_page_get_child (GtkAssistantPage *page);
+
G_END_DECLS