diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-01-30 22:29:03 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-01-30 22:29:03 +0000 |
commit | 4dddfb2dc62a68196f0f3e52712a25c427275b37 (patch) | |
tree | 63c2d56da9bbafaf5d90b9a87d22ef483a7ad40f /gtk/gtkbin.c | |
parent | 95ab2a72b4ba0a84b9c430d941f778367e02584b (diff) | |
download | gdk-pixbuf-4dddfb2dc62a68196f0f3e52712a25c427275b37.tar.gz |
Remove excess calls to g_return_if_fail from static and virtual functions.
Diffstat (limited to 'gtk/gtkbin.c')
-rw-r--r-- | gtk/gtkbin.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gtk/gtkbin.c b/gtk/gtkbin.c index e43042a16..d8a80eeca 100644 --- a/gtk/gtkbin.c +++ b/gtk/gtkbin.c @@ -109,13 +109,10 @@ static void gtk_bin_add (GtkContainer *container, GtkWidget *child) { - GtkBin *bin; + GtkBin *bin = GTK_BIN (container); - g_return_if_fail (GTK_IS_BIN (container)); g_return_if_fail (GTK_IS_WIDGET (child)); - bin = GTK_BIN (container); - if (bin->child != NULL) { g_warning ("Attempting to add a widget with type %s to a %s, " @@ -136,13 +133,10 @@ static void gtk_bin_remove (GtkContainer *container, GtkWidget *child) { - GtkBin *bin; + GtkBin *bin = GTK_BIN (container); gboolean widget_was_visible; - g_return_if_fail (GTK_IS_BIN (container)); g_return_if_fail (GTK_IS_WIDGET (child)); - - bin = GTK_BIN (container); g_return_if_fail (bin->child == child); widget_was_visible = GTK_WIDGET_VISIBLE (child); @@ -163,13 +157,10 @@ gtk_bin_forall (GtkContainer *container, GtkCallback callback, gpointer callback_data) { - GtkBin *bin; + GtkBin *bin = GTK_BIN (container); - g_return_if_fail (GTK_IS_BIN (container)); g_return_if_fail (callback != NULL); - bin = GTK_BIN (container); - if (bin->child) (* callback) (bin->child, callback_data); } |