[gtk+/rendering-cleanup-next: 43/154] toolbar: Don't propagate events to placeholders
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next: 43/154] toolbar: Don't propagate events to placeholders
- Date: Tue, 14 Sep 2010 15:50:16 +0000 (UTC)
commit c7aea616f956505ecddf4075beb1f964605f3d67
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 6 16:07:44 2010 +0200
toolbar: Don't propagate events to placeholders
In particular don't when that's done using uninitialized memory
gtk/gtktoolbar.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index b6abc35..cc8cee5 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -3287,8 +3287,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]