diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-25 23:46:53 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-25 23:46:53 +0800 |
commit | 6ba980d9eb23806fddd88be73af1b62d1dd3ead0 (patch) | |
tree | 8593fdc4f765c7824f5671e9c4c49de2c45a1ff7 /widgets | |
parent | bb241192eb773d7f0d178306dd55f9ca8e31c1f0 (diff) | |
download | gsoc2013-evolution-6ba980d9eb23806fddd88be73af1b62d1dd3ead0.tar gsoc2013-evolution-6ba980d9eb23806fddd88be73af1b62d1dd3ead0.tar.gz gsoc2013-evolution-6ba980d9eb23806fddd88be73af1b62d1dd3ead0.tar.bz2 gsoc2013-evolution-6ba980d9eb23806fddd88be73af1b62d1dd3ead0.tar.lz gsoc2013-evolution-6ba980d9eb23806fddd88be73af1b62d1dd3ead0.tar.xz gsoc2013-evolution-6ba980d9eb23806fddd88be73af1b62d1dd3ead0.tar.zst gsoc2013-evolution-6ba980d9eb23806fddd88be73af1b62d1dd3ead0.zip |
Fixed a bug where we were resizing a non-existent window.
2000-05-25 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-paned/e-hpaned.c, widgets/e-paned/e-vpaned.c: Fixed a
bug where we were resizing a non-existent window.
svn path=/trunk/; revision=3200
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/e-paned/e-hpaned.c | 11 | ||||
-rw-r--r-- | widgets/e-paned/e-vpaned.c | 11 |
2 files changed, 12 insertions, 10 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) { 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, |