diff options
author | Benjamin Otte <otte@redhat.com> | 2010-09-06 16:07:44 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-09-26 15:11:36 +0200 |
commit | 9a8c9d6579072284efc85022389b2dfefee8715a (patch) | |
tree | ea3d20d6a6353ee9d28cf366e1c343b9ea30a4d8 /gtk/gtktoolbar.c | |
parent | a18ec3485c2abeac1ef9b4d33cfe6c9f61547e42 (diff) | |
download | gtk+-9a8c9d6579072284efc85022389b2dfefee8715a.tar.gz |
toolbar: Don't propagate events to placeholders
In particular don't when that's done using uninitialized memory
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r-- | gtk/gtktoolbar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index 9642f5bbdd..819809c462 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -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); |