reviewed by: Matthias Clasen <mclasen@redhat.com>

2007-06-06  Johan Dahlin  <jdahlin@async.com.br>

    reviewed by: Matthias Clasen <mclasen@redhat.com>
    
    * gtk/gtkassistant.c (gtk_assistant_update_buttons_state): 
    Check if the wizard is empty before trying to access the first page.
    (#444310, Johan Dahlin)


svn path=/trunk/; revision=18060
This commit is contained in:
Johan Dahlin
2007-06-06 14:24:31 +00:00
committed by Johan Dahlin
parent f25af7074e
commit bf5df2271f
3 changed files with 20 additions and 6 deletions

View File

@ -457,6 +457,9 @@ set_assistant_buttons_state (GtkAssistant *assistant)
{
GtkAssistantPrivate *priv = assistant->priv;
if (!priv->current_page)
return;
switch (priv->current_page->type)
{
case GTK_ASSISTANT_PAGE_INTRO:
@ -1727,8 +1730,7 @@ gtk_assistant_set_forward_page_func (GtkAssistant *assistant,
/* Page flow has possibly changed, so the
buttons state might need to change too */
if (priv->current_page)
set_assistant_buttons_state (assistant);
set_assistant_buttons_state (assistant);
}
/**
@ -1882,8 +1884,7 @@ gtk_assistant_set_page_type (GtkAssistant *assistant,
/* Always set buttons state, a change in a future page
might change current page buttons */
if (priv->current_page)
set_assistant_buttons_state (assistant);
set_assistant_buttons_state (assistant);
gtk_widget_child_notify (page, "page-type");
}
@ -2115,8 +2116,7 @@ gtk_assistant_set_page_complete (GtkAssistant *assistant,
/* Always set buttons state, a change in a future page
might change current page buttons */
if (priv->current_page)
set_assistant_buttons_state (assistant);
set_assistant_buttons_state (assistant);
gtk_widget_child_notify (page, "complete");
}