summaryrefslogtreecommitdiff
path: root/gtk/gtkbbox.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-01-30 22:29:03 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-01-30 22:29:03 +0000
commit4dddfb2dc62a68196f0f3e52712a25c427275b37 (patch)
tree63c2d56da9bbafaf5d90b9a87d22ef483a7ad40f /gtk/gtkbbox.c
parent95ab2a72b4ba0a84b9c430d941f778367e02584b (diff)
downloadgdk-pixbuf-4dddfb2dc62a68196f0f3e52712a25c427275b37.tar.gz
Remove excess calls to g_return_if_fail from static and virtual functions.
Diffstat (limited to 'gtk/gtkbbox.c')
-rw-r--r--gtk/gtkbbox.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c
index 2c4c4307a..6d77e8335 100644
--- a/gtk/gtkbbox.c
+++ b/gtk/gtkbbox.c
@@ -267,6 +267,8 @@ void
gtk_button_box_set_child_size (GtkButtonBox *widget,
gint width, gint height)
{
+ g_return_if_fail (GTK_IS_BUTTON_BOX (widget));
+
widget->child_min_width = width;
widget->child_min_height = height;
}
@@ -275,6 +277,8 @@ void
gtk_button_box_set_child_ipadding (GtkButtonBox *widget,
gint ipad_x, gint ipad_y)
{
+ g_return_if_fail (GTK_IS_BUTTON_BOX (widget));
+
widget->child_ipad_x = ipad_x;
widget->child_ipad_y = ipad_y;
}
@@ -283,6 +287,7 @@ void
gtk_button_box_set_layout (GtkButtonBox *widget,
GtkButtonBoxStyle layout_style)
{
+ g_return_if_fail (GTK_IS_BUTTON_BOX (widget));
g_return_if_fail (layout_style >= GTK_BUTTONBOX_DEFAULT_STYLE &&
layout_style <= GTK_BUTTONBOX_END);
@@ -301,6 +306,10 @@ void
gtk_button_box_get_child_size (GtkButtonBox *widget,
gint *width, gint *height)
{
+ g_return_if_fail (GTK_IS_BUTTON_BOX (widget));
+ g_return_if_fail (width != NULL);
+ g_return_if_fail (height != NULL);
+
*width = widget->child_min_width;
*height = widget->child_min_height;
}
@@ -309,6 +318,10 @@ void
gtk_button_box_get_child_ipadding (GtkButtonBox *widget,
gint* ipad_x, gint *ipad_y)
{
+ g_return_if_fail (GTK_IS_BUTTON_BOX (widget));
+ g_return_if_fail (ipad_x != NULL);
+ g_return_if_fail (ipad_y != NULL);
+
*ipad_x = widget->child_ipad_x;
*ipad_y = widget->child_ipad_y;
}