[gtk+] overlay: Fix child window position/size on realize
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] overlay: Fix child window position/size on realize
- Date: Tue, 11 Dec 2012 14:43:04 +0000 (UTC)
commit 1c05915f51bad80b82d505ec8f18fa97bda4862a
Author: Alexander Larsson <alexl redhat com>
Date: Tue Dec 11 15:41:50 2012 +0100
overlay: Fix child window position/size on realize
We don't get an automatic queue resize on realize anymore, which
was papering over this bug where we did not set the child window
size/position at realize time.
gtk/gtkoverlay.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 2d94579..a66ede8 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -423,7 +423,10 @@ gtk_overlay_realize (GtkWidget *widget)
child = children->data;
if (child->window == NULL)
- child->window = gtk_overlay_create_child_window (overlay, child->widget);
+ {
+ child->window = gtk_overlay_create_child_window (overlay, child->widget);
+ gtk_overlay_child_allocate (overlay, child);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]