aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-paned/e-vpaned.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-paned/e-vpaned.c')
-rw-r--r--widgets/e-paned/e-vpaned.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/widgets/e-paned/e-vpaned.c b/widgets/e-paned/e-vpaned.c
index 9eb9407a23..bc9ef41e78 100644
--- a/widgets/e-paned/e-vpaned.c
+++ b/widgets/e-paned/e-vpaned.c
@@ -193,10 +193,11 @@ e_vpaned_size_allocate (GtkWidget *widget,
/* Move the handle before the children so we don't get extra expose events */
- gdk_window_move_resize (widget->window,
- allocation->x, allocation->y,
- allocation->width,
- allocation->height);
+ if (GTK_WIDGET_REALIZED (widget))
+ gdk_window_move_resize (widget->window,
+ allocation->x, allocation->y,
+ allocation->width,
+ allocation->height);
handle_shown = e_paned_handle_shown(paned);
if (handle_shown)
@@ -206,7 +207,7 @@ e_vpaned_size_allocate (GtkWidget *widget,
paned->handle_width = MAX (1, (gint) widget->allocation.width - 2 * border_width);
paned->handle_height = paned->handle_size;
- if (GTK_WIDGET_REALIZED(widget))
+ if (GTK_WIDGET_REALIZED (widget))
{
gdk_window_move_resize (paned->handle,
paned->handle_xpos,