[gtk+] overlay: Properly allocate the child upon addition
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] overlay: Properly allocate the child upon addition
- Date: Wed, 7 Dec 2011 23:26:47 +0000 (UTC)
commit 6454c718dd5adfc10db51cb10966c002907d759b
Author: Benjamin Otte <otte redhat com>
Date: Thu Dec 8 00:20:49 2011 +0100
overlay: Properly allocate the child upon addition
This ensures that after addition the child gets assigned the proper
allocation and the child window is properly shown/hidden.
gtk/gtkoverlay.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index b964fff..b116ecb 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -628,6 +628,7 @@ gtk_overlay_add_overlay (GtkOverlay *overlay,
{
child->window = gtk_overlay_create_child_window (overlay, widget);
gtk_widget_set_parent (widget, GTK_WIDGET (overlay));
+ gtk_overlay_child_allocate (overlay, child);
}
else
gtk_widget_set_parent (widget, GTK_WIDGET (overlay));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]