[gtk+/overlay: 20/34] overlay: do not allocate anything if main_widget is NULL
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/overlay: 20/34] overlay: do not allocate anything if main_widget is NULL
- Date: Sat, 11 Jun 2011 01:00:20 +0000 (UTC)
commit 4d6f9149f895ef318326981af6c5b875bb004e7b
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri May 27 10:37:32 2011 +0200
overlay: do not allocate anything if main_widget is NULL
gtk/gtkoverlay.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 819021e..a98803c 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -240,6 +240,9 @@ gtk_overlay_size_allocate (GtkWidget *widget,
GTK_WIDGET_CLASS (gtk_overlay_parent_class)->size_allocate (widget, allocation);
+ if (priv->main_widget == NULL)
+ return;
+
/* main widget allocation */
main_alloc.x = 0;
main_alloc.y = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]