[gtk+/rendering-cleanup-next: 42/153] 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: 42/153] toolbar: Don't propagate events to placeholders
- Date: Sat, 11 Sep 2010 04:54:57 +0000 (UTC)
commit 1668c48849f95906a1af1b9739d5496e5b77c615
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 e3f207e..6c6d339 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -3285,8 +3285,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]