New function

2001-05-22  Havoc Pennington  <hp@pobox.com>

	* gtk/gtkbin.c (gtk_bin_get_child): New function
This commit is contained in:
Havoc Pennington
2001-05-25 03:42:40 +00:00
committed by Havoc Pennington
parent 92afa2ecc4
commit b995aae44d
17 changed files with 89 additions and 2 deletions

View File

@ -232,3 +232,21 @@ gtk_bin_forall (GtkContainer *container,
if (bin->child)
(* callback) (bin->child, callback_data);
}
/**
* gtk_bin_get_child:
* @bin: a #GtkBin
*
* Gets the child of the #GtkBin, or %NULL if the bin contains
* no child widget. The returned widget does not have a reference
* added, so you do not need to unref it.
*
* Return value: pointer to child of the #GtkBin
**/
GtkWidget*
gtk_bin_get_child (GtkBin *bin)
{
g_return_val_if_fail (GTK_IS_BIN (bin), NULL);
return bin->child;
}