summaryrefslogtreecommitdiff
path: root/gtk/gtkhandlebox.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-01-29 22:14:19 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-01-29 22:14:19 +0000
commitc12b1607a4560b18aecaffbb29dfcf7734ee899e (patch)
treee0944412d493d4986e6045f94edd2ee1068356e2 /gtk/gtkhandlebox.c
parent6284428f646d6950de81f3f555e9342e384a360d (diff)
downloadgtk+-c12b1607a4560b18aecaffbb29dfcf7734ee899e.tar.gz
Small fix to size of torn off window (#60271, Detlef Reichl)
Tue Jan 29 16:35:04 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small fix to size of torn off window (#60271, Detlef Reichl) * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out by Ross Burton)
Diffstat (limited to 'gtk/gtkhandlebox.c')
-rw-r--r--gtk/gtkhandlebox.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index 33d48a2ad6..d4d0125654 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -1207,6 +1207,12 @@ gtk_handle_box_motion (GtkWidget *widget,
width = child_requisition.width + 2 * GTK_CONTAINER (hb)->border_width;
height = child_requisition.height + 2 * GTK_CONTAINER (hb)->border_width;
+
+ if (hb->handle_position == GTK_POS_LEFT || hb->handle_position == GTK_POS_RIGHT)
+ width += DRAG_HANDLE_SIZE;
+ else
+ height += DRAG_HANDLE_SIZE;
+
gdk_window_move_resize (hb->float_window, new_x, new_y, width, height);
gdk_window_reparent (hb->bin_window, hb->float_window, 0, 0);
gdk_window_set_hints (hb->float_window, new_x, new_y, 0, 0, 0, 0, GDK_HINT_POS);