summaryrefslogtreecommitdiff
path: root/gtk/gtkbin.c
diff options
context:
space:
mode:
authorTim Janik <timj@src.gnome.org>1998-01-30 23:47:09 +0000
committerTim Janik <timj@src.gnome.org>1998-01-30 23:47:09 +0000
commit4af33fa24df69f335f07f43e5904a766c8d8ec97 (patch)
treeccc23ba16332f44ae45418f6cf9580036c4c76da /gtk/gtkbin.c
parentee7038f9fddd0213c65474e5d59609107caed7c6 (diff)
downloadgtk+-4af33fa24df69f335f07f43e5904a766c8d8ec97.tar.gz
hm, initital refcount revolution commit ;)
still some gnits left, but keep working on it ;) -timj
Diffstat (limited to 'gtk/gtkbin.c')
-rw-r--r--gtk/gtkbin.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/gtk/gtkbin.c b/gtk/gtkbin.c
index 3e60b5976a..aff8043e43 100644
--- a/gtk/gtkbin.c
+++ b/gtk/gtkbin.c
@@ -20,7 +20,6 @@
static void gtk_bin_class_init (GtkBinClass *klass);
static void gtk_bin_init (GtkBin *bin);
-static void gtk_bin_destroy (GtkObject *object);
static void gtk_bin_map (GtkWidget *widget);
static void gtk_bin_unmap (GtkWidget *widget);
static void gtk_bin_draw (GtkWidget *widget,
@@ -76,8 +75,6 @@ gtk_bin_class_init (GtkBinClass *class)
parent_class = gtk_type_class (gtk_container_get_type ());
- object_class->destroy = gtk_bin_destroy;
-
widget_class->map = gtk_bin_map;
widget_class->unmap = gtk_bin_unmap;
widget_class->draw = gtk_bin_draw;
@@ -98,27 +95,6 @@ gtk_bin_init (GtkBin *bin)
static void
-gtk_bin_destroy (GtkObject *object)
-{
- GtkBin *bin;
-
- g_return_if_fail (object != NULL);
- g_return_if_fail (GTK_IS_BIN (object));
-
- bin = GTK_BIN (object);
-
- if (bin->child)
- {
- bin->child->parent = NULL;
- gtk_object_unref (GTK_OBJECT (bin->child));
- gtk_widget_destroy (bin->child);
- }
-
- if (GTK_OBJECT_CLASS (parent_class)->destroy)
- (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
-}
-
-static void
gtk_bin_map (GtkWidget *widget)
{
GtkBin *bin;
@@ -261,7 +237,6 @@ gtk_bin_remove (GtkContainer *container,
if (bin->child == widget)
{
gtk_widget_unparent (widget);
-
bin->child = NULL;
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (container))