summaryrefslogtreecommitdiff
path: root/gtk/gtkhpaned.c
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-03-18 21:11:04 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-03-18 21:11:04 +0000
commitf9739e834376121d8f766072499126e1cac2f332 (patch)
treedb18acfaf13950986d1f9098980326cfabfb1d5a /gtk/gtkhpaned.c
parent85d4cd0f43c29fcca9c38282d7fa169bf775409e (diff)
downloadgdk-pixbuf-f9739e834376121d8f766072499126e1cac2f332.tar.gz
( From: James Henstridge <james@daa.com.au> )
Wed Mar 18 11:09:10 1998 Owen Taylor <owt1@cornell.edu> ( From: James Henstridge <james@daa.com.au> ) * gtk/gtkclist.c: Don't remove, then destroy labels in gtk_clist_set_column_[*], just remove them. * gtk/gtkmain.c (gtk_invoke_timeout_function): call marshal when appropriate, not function. Tue Mar 17 14:15:07 1998 Owen Taylor <owt1@cornell.edu> * gtk/testgtk.c (create_main_window): Alphabetize tests * gtk/gtk[hv]paned.c: Change division on resize if necessary to keep handle visible. * gtk/gtkgamma.c gtk/gtkcurve.c: Moved initialization into _init() functions. * gtk/gtkscrolledwindow.c: Added missing _construct() functions.
Diffstat (limited to 'gtk/gtkhpaned.c')
-rw-r--r--gtk/gtkhpaned.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkhpaned.c b/gtk/gtkhpaned.c
index d89e00827..9ef2ff095 100644
--- a/gtk/gtkhpaned.c
+++ b/gtk/gtkhpaned.c
@@ -149,6 +149,10 @@ gtk_hpaned_size_allocate (GtkWidget *widget,
else
paned->child1_size = 0;
}
+ else
+ paned->child1_size = CLAMP (paned->child1_size, 0,
+ allocation->width - paned->gutter_size
+ - 2 * GTK_CONTAINER (paned)->border_width);
/* Move the handle before the children so we don't get extra expose events */