diff options
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r-- | gtk/gtkbox.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index 96fad211c0..e61d7a8a81 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -438,6 +438,22 @@ gtk_box_set_spacing (GtkBox *box, } } +/** + * gtk_box_get_spacing: + * @box: a #GtkBox + * + * Gets the value set by gtk_box_set_spacing(). + * + * Return value: spacing between children + **/ +gint +gtk_box_get_spacing (GtkBox *box) +{ + g_return_if_fail (GTK_IS_BOX (box)); + + return box->spacing; +} + void gtk_box_reorder_child (GtkBox *box, GtkWidget *child, |