diff --git a/ChangeLog b/ChangeLog index 1fd36a68a8..57509b88e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-03-23 Jonathan Blandford + + * gtk/gtkpaned.c (gtk_paned_get_position): add getter. + 2000-03-17 Tor Lillqvist * gdk/win32/gdkevents-win32.c: Remove the #ifndef diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 1fd36a68a8..57509b88e8 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,7 @@ +2000-03-23 Jonathan Blandford + + * gtk/gtkpaned.c (gtk_paned_get_position): add getter. + 2000-03-17 Tor Lillqvist * gdk/win32/gdkevents-win32.c: Remove the #ifndef diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1fd36a68a8..57509b88e8 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +2000-03-23 Jonathan Blandford + + * gtk/gtkpaned.c (gtk_paned_get_position): add getter. + 2000-03-17 Tor Lillqvist * gdk/win32/gdkevents-win32.c: Remove the #ifndef diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 1fd36a68a8..57509b88e8 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,7 @@ +2000-03-23 Jonathan Blandford + + * gtk/gtkpaned.c (gtk_paned_get_position): add getter. + 2000-03-17 Tor Lillqvist * gdk/win32/gdkevents-win32.c: Remove the #ifndef diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 1fd36a68a8..57509b88e8 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,7 @@ +2000-03-23 Jonathan Blandford + + * gtk/gtkpaned.c (gtk_paned_get_position): add getter. + 2000-03-17 Tor Lillqvist * gdk/win32/gdkevents-win32.c: Remove the #ifndef diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 1fd36a68a8..57509b88e8 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +2000-03-23 Jonathan Blandford + + * gtk/gtkpaned.c (gtk_paned_get_position): add getter. + 2000-03-17 Tor Lillqvist * gdk/win32/gdkevents-win32.c: Remove the #ifndef diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 1fd36a68a8..57509b88e8 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +2000-03-23 Jonathan Blandford + + * gtk/gtkpaned.c (gtk_paned_get_position): add getter. + 2000-03-17 Tor Lillqvist * gdk/win32/gdkevents-win32.c: Remove the #ifndef diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 5022a094c0..db32e7cdab 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -484,6 +484,15 @@ gtk_paned_forall (GtkContainer *container, (*callback) (paned->child2, callback_data); } +gint +gtk_paned_get_position (GtkPaned *paned) +{ + g_return_if_fail (paned != NULL); + g_return_if_fail (GTK_IS_PANED (paned)); + + return paned->child1_size; +} + void gtk_paned_set_position (GtkPaned *paned, gint position) diff --git a/gtk/gtkpaned.h b/gtk/gtkpaned.h index da0f520afe..2324ddb9ce 100644 --- a/gtk/gtkpaned.h +++ b/gtk/gtkpaned.h @@ -99,6 +99,7 @@ void gtk_paned_pack2 (GtkPaned *paned, GtkWidget *child, gboolean resize, gboolean shrink); +gint gtk_paned_get_position (GtkPaned *paned); void gtk_paned_set_position (GtkPaned *paned, gint position); void gtk_paned_set_handle_size (GtkPaned *paned,