Commit f1b87348d6b35620dc03dbc107eaa18e26d4592b

Don't access widget->window unless widget is realized

Fixes warnings about invalid window in gdk_window_process_updates
  
157157
158158 gtk_widget_size_allocate (clutter->priv->widget, &child_allocation);
159159
160 /* The former size allocate may have queued exposed, we then need to
161 process them immediately, since we will paint the pixmap when this
162 returns (as size allocation is done from clutter_redraw which is
163 called from gtk_clutter_expose_event(). If we don't do this we
164 may see an intermediate state of the pixmap, causing flicker */
165 gdk_window_process_updates (clutter->priv->widget->window, TRUE);
166
167160 if (CLUTTER_ACTOR_IS_REALIZED (actor))
168161 {
162 /* The former size allocate may have queued exposed, we then need to
163 process them immediately, since we will paint the pixmap when this
164 returns (as size allocation is done from clutter_redraw which is
165 called from gtk_clutter_expose_event(). If we don't do this we
166 may see an intermediate state of the pixmap, causing flicker */
167 gdk_window_process_updates (clutter->priv->widget->window, TRUE);
168
169169 pixmap = gdk_offscreen_window_get_pixmap (clutter->priv->widget->window);
170170 if (pixmap != clutter->priv->pixmap)
171171 {