summaryrefslogtreecommitdiff
path: root/gtk/gtkassistant.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-06-02 16:00:16 -0400
committerMatthew Barnes <mbarnes@redhat.com>2010-06-03 17:03:14 -0400
commitbb5c585777cede12bd1a7cf9fd1c5082e2debc22 (patch)
tree29be4003ef2493c5e29fbe9a223c469a93a39627 /gtk/gtkassistant.h
parent112d97d498ddf0d9b652cfd8b8fb6cf8686e18f1 (diff)
downloadgtk+-bb5c585777cede12bd1a7cf9fd1c5082e2debc22.tar.gz
Bug 596428 - GtkAssistant: Support ending with a progress page
- Add gtk_assistant_commit() This function discards the visited pages list so the back button is not shown on the current page, and removes the cancel button from subsequent pages. Use this when information provided thus far cannot be revisited. - Don't show the Forward button on a GTK_ASSISTANT_PAGE_PROGRESS if it's the last page (according to the forward page function). - Append a progress page to the GtkAssistant demo.
Diffstat (limited to 'gtk/gtkassistant.h')
-rw-r--r--gtk/gtkassistant.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkassistant.h b/gtk/gtkassistant.h
index 47fd16ba86..8b7297fa7f 100644
--- a/gtk/gtkassistant.h
+++ b/gtk/gtkassistant.h
@@ -57,7 +57,8 @@ G_BEGIN_DECLS
* used to handle buttons sensitivity and visibility.
*
* Note that an assistant needs to end its page flow with a page of type
- * %GTK_ASSISTANT_PAGE_CONFIRM or %GTK_ASSISTANT_PAGE_SUMMARY to be correct.
+ * %GTK_ASSISTANT_PAGE_CONFIRM, %GTK_ASSISTANT_PAGE_SUMMARY or
+ * %GTK_ASSISTANT_PAGE_PROGRESS to be correct.
*/
typedef enum
{
@@ -168,6 +169,7 @@ void gtk_assistant_remove_action_widget (GtkAssistant
GtkWidget *child);
void gtk_assistant_update_buttons_state (GtkAssistant *assistant);
+void gtk_assistant_commit (GtkAssistant *assistant);
G_END_DECLS