+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)
+
2007-06-06 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version
+Overview of Changes from GTK+ 2.11.2 to 2.11.3
+==============================================
+
+* Bugs fixed:
+ 444310 update_buttons_state on a bare assistant causes gtk+ to crash
+
Overview of Changes from GTK+ 2.11.1 to 2.11.2
==============================================
{
GtkAssistantPrivate *priv = assistant->priv;
+ if (!priv->current_page)
+ return;
+
switch (priv->current_page->type)
{
case GTK_ASSISTANT_PAGE_INTRO:
/* 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);
}
/**
/* 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");
}
/* 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");
}