aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-paned/e-hpaned.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-paned/e-hpaned.c')
-rw-r--r--widgets/e-paned/e-hpaned.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/widgets/e-paned/e-hpaned.c b/widgets/e-paned/e-hpaned.c
index 0729e7c84e..0f4184ff57 100644
--- a/widgets/e-paned/e-hpaned.c
+++ b/widgets/e-paned/e-hpaned.c
@@ -193,12 +193,13 @@ e_hpaned_size_allocate (GtkWidget *widget,
child2_requisition.width);
/* Move the handle before the children so we don't get extra expose events */
+
+ if (GTK_WIDGET_REALIZED (widget))
+ gdk_window_move_resize (widget->window,
+ allocation->x, allocation->y,
+ allocation->width,
+ allocation->height);
- gdk_window_move_resize (widget->window,
- allocation->x, allocation->y,
- allocation->width,
- allocation->height);
-
handle_shown = e_paned_handle_shown(paned);
if (handle_shown)
{