Commit 86fcb8b6 authored by Matthias Clasen's avatar Matthias Clasen

Add gtk_assistant_remove_page

This was suspiciously missing, considering we have the usual
append/prepend/insert_page methods.
parent ad9da272
......@@ -354,6 +354,7 @@ gtk_assistant_get_nth_page
gtk_assistant_prepend_page
gtk_assistant_append_page
gtk_assistant_insert_page
gtk_assistant_remove_page
GtkAssistantPageFunc
gtk_assistant_set_forward_page_func
GtkAssistantPageType
......
......@@ -244,6 +244,7 @@ gtk_assistant_page_type_get_type
gtk_assistant_prepend_page
gtk_assistant_previous_page
gtk_assistant_remove_action_widget
gtk_assistant_remove_page
gtk_assistant_set_current_page
gtk_assistant_set_forward_page_func
gtk_assistant_set_page_complete
......
......@@ -1648,6 +1648,30 @@ gtk_assistant_insert_page (GtkAssistant *assistant,
return position;
}
/**
* gtk_assistant_remove_page:
* @assistant: a #GtkAssistant
* @page_num: the index of a page in the @assistant,
* or -1 to get the last page
*
* Removes the @page_num's page from @assistant.
*
* Since: 3.2
*/
void
gtk_assistant_remove_page (GtkAssistant *assistant,
gint page_num)
{
GtkWidget *page;
g_return_if_fail (GTK_IS_ASSISTANT (assistant));
page = gtk_assistant_get_nth_page (assistant, page_num);
if (page)
gtk_assistant_remove (assistant, page);
}
/**
* gtk_assistant_set_forward_page_func:
* @assistant: a #GtkAssistant
......
......@@ -139,6 +139,8 @@ gint gtk_assistant_append_page (GtkAssistant
gint gtk_assistant_insert_page (GtkAssistant *assistant,
GtkWidget *page,
gint position);
void gtk_asssistant_remove_page (GtkAssistant *assistant,
gint page_num);
void gtk_assistant_set_forward_page_func (GtkAssistant *assistant,
GtkAssistantPageFunc page_func,
gpointer data,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment