From dfb24fd56e8215f0bbf89f0361441af05920b780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 3 Jun 2010 00:28:58 +0200 Subject: gtkcontainer: Add _gtk_container_*_need_resize internal accessors gtkoffscreenwindow and gtkwindow need access to need_resize var --- gtk/gtkoffscreenwindow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkoffscreenwindow.c') diff --git a/gtk/gtkoffscreenwindow.c b/gtk/gtkoffscreenwindow.c index 7e05fcb049..417003b8fc 100644 --- a/gtk/gtkoffscreenwindow.c +++ b/gtk/gtkoffscreenwindow.c @@ -184,8 +184,8 @@ gtk_offscreen_window_show (GtkWidget *widget) GTK_WIDGET_SET_FLAGS (widget, GTK_VISIBLE); container = GTK_CONTAINER (widget); - need_resize = container->need_resize || !gtk_widget_get_realized (widget); - container->need_resize = FALSE; + need_resize = _gtk_container_get_need_resize (container) || !gtk_widget_get_realized (widget); + _gtk_container_set_need_resize (container, FALSE); if (need_resize) gtk_offscreen_window_resize (widget); -- cgit v1.2.1