summaryrefslogtreecommitdiff
path: root/gtk/gtkpaned.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1998-12-15 17:56:31 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-12-15 17:56:31 +0000
commitcceabe57ba5f083b9f7ffc276050bf3634cc7af4 (patch)
tree252c4465bf0b3875fc3ffae3cfa08d40da8ea5cc /gtk/gtkpaned.h
parent1bf27c357d69d4a23eaccdb9aeab168f49e98cd7 (diff)
downloadgtk+-cceabe57ba5f083b9f7ffc276050bf3634cc7af4.tar.gz
Fixed up some warnings.
Tue Dec 15 11:37:05 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkmain.c: Fixed up some warnings. Tue Dec 15 10:32:01 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtk{h,v,}paned.{c,h}: Add new functions gtk_paned_set_position(), gtk_paned_pack1/2(). The latter take a shrink and resize parameters, that allows setting minimum sizes and getting 'relative' resizing.
Diffstat (limited to 'gtk/gtkpaned.h')
-rw-r--r--gtk/gtkpaned.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/gtk/gtkpaned.h b/gtk/gtkpaned.h
index f101572cd4..9ed9054b49 100644
--- a/gtk/gtkpaned.h
+++ b/gtk/gtkpaned.h
@@ -54,8 +54,16 @@ struct _GtkPaned
guint16 gutter_size;
gint child1_size;
+ gint last_allocation;
+ gint min_position;
+ gint max_position;
+
guint position_set : 1;
guint in_drag : 1;
+ guint child1_shrink : 1;
+ guint child1_resize : 1;
+ guint child2_shrink : 1;
+ guint child2_resize : 1;
gint16 handle_xpos;
gint16 handle_ypos;
@@ -72,11 +80,27 @@ void gtk_paned_add1 (GtkPaned *paned,
GtkWidget *child);
void gtk_paned_add2 (GtkPaned *paned,
GtkWidget *child);
+void gtk_paned_pack1 (GtkPaned *paned,
+ GtkWidget *child,
+ gboolean resize,
+ gboolean shrink);
+void gtk_paned_pack2 (GtkPaned *paned,
+ GtkWidget *child,
+ gboolean resize,
+ gboolean shrink);
+void gtk_paned_set_position (GtkPaned *paned,
+ gint position);
void gtk_paned_set_handle_size (GtkPaned *paned,
guint16 size);
void gtk_paned_set_gutter_size (GtkPaned *paned,
guint16 size);
+/* Internal function */
+void gtk_paned_compute_position (GtkPaned *paned,
+ gint allocation,
+ gint child1_req,
+ gint child2_req);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */