[gtk+/client-side-decorations: 3/50] Also resize GTK_WIDGET (window)->window on size_allocate.
- From: Cody Russell <bratsche src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-decorations: 3/50] Also resize GTK_WIDGET (window)->window on size_allocate.
- Date: Wed, 8 Jul 2009 15:28:24 +0000 (UTC)
commit 94e50d3807cde2009584570fdf9cf6efae8ad4ee
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat May 16 17:23:27 2009 +0200
Also resize GTK_WIDGET (window)->window on size_allocate.
gtk/gtkwindow.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b48ac6d..6b7d2ec 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5091,9 +5091,12 @@ gtk_window_size_allocate (GtkWidget *widget,
if (GTK_WIDGET_REALIZED (widget) && window->frame)
{
- gdk_window_resize (window->frame,
- allocation->width + window->frame_left + window->frame_right,
- allocation->height + window->frame_top + window->frame_bottom);
+ if (window->frame)
+ gdk_window_resize (window->frame,
+ allocation->width + window->frame_left + window->frame_right,
+ allocation->height + window->frame_top + window->frame_bottom);
+
+ gdk_window_resize (widget->window, allocation->width, allocation->height);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]