summaryrefslogtreecommitdiff
path: root/gtk/gtkbin.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkbin.c')
-rw-r--r--gtk/gtkbin.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gtk/gtkbin.c b/gtk/gtkbin.c
index d6f5d5e356..ba05632d30 100644
--- a/gtk/gtkbin.c
+++ b/gtk/gtkbin.c
@@ -79,8 +79,6 @@ gtk_bin_add (GtkContainer *container,
{
GtkBin *bin = GTK_BIN (container);
- g_return_if_fail (GTK_IS_WIDGET (child));
-
if (bin->child != NULL)
{
g_warning ("Attempting to add a widget with type %s to a %s, "
@@ -104,7 +102,6 @@ gtk_bin_remove (GtkContainer *container,
GtkBin *bin = GTK_BIN (container);
gboolean widget_was_visible;
- g_return_if_fail (GTK_IS_WIDGET (child));
g_return_if_fail (bin->child == child);
widget_was_visible = GTK_WIDGET_VISIBLE (child);
@@ -127,8 +124,6 @@ gtk_bin_forall (GtkContainer *container,
{
GtkBin *bin = GTK_BIN (container);
- g_return_if_fail (callback != NULL);
-
if (bin->child)
(* callback) (bin->child, callback_data);
}