mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-24 12:41:16 +00:00
Fix #99425, add accessor functions for GtkPaned's children.
2004-01-20 Federico Mena Quintero <federico@ximian.com> Fix #99425, add accessor functions for GtkPaned's children. * gtk/gtkpaned.c (gtk_paned_get_child1): New function. (gtk_paned_get_child2): New function.
This commit is contained in:
parent
eafbfd6367
commit
3ccf6187e3
@ -1,3 +1,10 @@
|
||||
2004-01-20 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fix #99425, add accessor functions for GtkPaned's children.
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_get_child1): New function.
|
||||
(gtk_paned_get_child2): New function.
|
||||
|
||||
Tue Jan 20 23:49:52 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* NEWS: Start of 2.3.2 section.
|
||||
|
@ -1,3 +1,10 @@
|
||||
2004-01-20 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fix #99425, add accessor functions for GtkPaned's children.
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_get_child1): New function.
|
||||
(gtk_paned_get_child2): New function.
|
||||
|
||||
Tue Jan 20 23:49:52 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* NEWS: Start of 2.3.2 section.
|
||||
|
@ -1,3 +1,10 @@
|
||||
2004-01-20 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fix #99425, add accessor functions for GtkPaned's children.
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_get_child1): New function.
|
||||
(gtk_paned_get_child2): New function.
|
||||
|
||||
Tue Jan 20 23:49:52 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* NEWS: Start of 2.3.2 section.
|
||||
|
@ -1,3 +1,10 @@
|
||||
2004-01-20 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fix #99425, add accessor functions for GtkPaned's children.
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_get_child1): New function.
|
||||
(gtk_paned_get_child2): New function.
|
||||
|
||||
Tue Jan 20 23:49:52 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* NEWS: Start of 2.3.2 section.
|
||||
|
@ -1,3 +1,10 @@
|
||||
2004-01-20 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fix #99425, add accessor functions for GtkPaned's children.
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_get_child1): New function.
|
||||
(gtk_paned_get_child2): New function.
|
||||
|
||||
Tue Jan 20 23:49:52 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* NEWS: Start of 2.3.2 section.
|
||||
|
@ -1126,6 +1126,42 @@ gtk_paned_set_position (GtkPaned *paned,
|
||||
gtk_widget_queue_resize (GTK_WIDGET (paned));
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_paned_get_child1:
|
||||
* @paned: a #GtkPaned widget
|
||||
*
|
||||
* Obtains the first child of the paned widget.
|
||||
*
|
||||
* Return value: first child, or %NULL if it is not set.
|
||||
*
|
||||
* Since: 2.4
|
||||
**/
|
||||
GtkWidget *
|
||||
gtk_paned_get_child1 (GtkPaned *paned)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_PANED (paned), NULL);
|
||||
|
||||
return paned->child1;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_paned_get_child2:
|
||||
* @paned: a #GtkPaned widget
|
||||
*
|
||||
* Obtains the second child of the paned widget.
|
||||
*
|
||||
* Return value: second child, or %NULL if it is not set.
|
||||
*
|
||||
* Since: 2.4
|
||||
**/
|
||||
GtkWidget *
|
||||
gtk_paned_get_child2 (GtkPaned *paned)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_PANED (paned), NULL);
|
||||
|
||||
return paned->child2;
|
||||
}
|
||||
|
||||
void
|
||||
gtk_paned_compute_position (GtkPaned *paned,
|
||||
gint allocation,
|
||||
|
@ -123,6 +123,9 @@ gint gtk_paned_get_position (GtkPaned *paned);
|
||||
void gtk_paned_set_position (GtkPaned *paned,
|
||||
gint position);
|
||||
|
||||
GtkWidget *gtk_paned_get_child1 (GtkPaned *paned);
|
||||
GtkWidget *gtk_paned_get_child2 (GtkPaned *paned);
|
||||
|
||||
/* Internal function */
|
||||
#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
|
||||
void gtk_paned_compute_position (GtkPaned *paned,
|
||||
|
Loading…
Reference in New Issue
Block a user