toolbar: Don't propagate events to placeholders

In particular don't when that's done using uninitialized memory
This commit is contained in:
Benjamin Otte 2010-09-06 16:07:44 +02:00
parent a18ec3485c
commit 9a8c9d6579

View File

@ -3290,8 +3290,10 @@ toolbar_content_expose (ToolbarContent *content,
{
GtkWidget *widget;
if (!content->is_placeholder)
widget = GTK_WIDGET (content->item);
if (content->is_placeholder)
return;
widget = GTK_WIDGET (content->item);
if (widget)
gtk_container_propagate_expose (container, widget, expose);