Commit 18ce1ade authored by Lars Hamann's avatar Lars Hamann Committed by Lars Hamann
Browse files

removed. gtk_clist_destroy is sufficient

Thu Oct 22 22:40:35 1998  Lars Hamann  <lars@gtk.org>

        * gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
        is sufficient
parent 87b66640
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
is sufficient
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
......
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
is sufficient
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
......
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
is sufficient
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
......
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
is sufficient
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
......
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
is sufficient
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
......
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
is sufficient
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
......
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
is sufficient
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
......
......@@ -49,7 +49,6 @@
static void gtk_ctree_class_init (GtkCTreeClass *klass);
static void gtk_ctree_init (GtkCTree *ctree);
static void gtk_ctree_destroy (GtkObject *object);
static void gtk_ctree_realize (GtkWidget *widget);
static void gtk_ctree_unrealize (GtkWidget *widget);
static gint gtk_ctree_button_press (GtkWidget *widget,
......@@ -353,8 +352,6 @@ gtk_ctree_class_init (GtkCTreeClass *klass)
gtk_object_class_add_signals (object_class, ctree_signals, LAST_SIGNAL);
object_class->destroy = gtk_ctree_destroy;
widget_class->realize = gtk_ctree_realize;
widget_class->unrealize = gtk_ctree_unrealize;
widget_class->button_press_event = gtk_ctree_button_press;
......@@ -453,43 +450,6 @@ gtk_ctree_init (GtkCTree *ctree)
ctree->show_stub = TRUE;
}
static void
gtk_ctree_destroy (GtkObject *object)
{
gint i;
GtkCList *clist;
g_return_if_fail (object != NULL);
g_return_if_fail (GTK_IS_CTREE (object));
clist = GTK_CLIST (object);
GTK_CLIST_SET_FLAG (clist, CLIST_FROZEN);
gtk_clist_clear (GTK_CLIST (object));
if (clist->vscrollbar)
{
gtk_widget_unparent (clist->vscrollbar);
clist->vscrollbar = NULL;
}
if (clist->hscrollbar)
{
gtk_widget_unparent (clist->hscrollbar);
clist->hscrollbar = NULL;
}
for (i = 0; i < clist->columns; i++)
if (clist->column[i].button)
{
gtk_widget_unparent (clist->column[i].button);
clist->column[i].button = NULL;
}
if (GTK_OBJECT_CLASS (container_class)->destroy)
(*GTK_OBJECT_CLASS (container_class)->destroy) (object);
}
static void
ctree_attach_styles (GtkCTree *ctree,
GtkCTreeNode *node,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment