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
This commit is contained in:
Lars Hamann 1998-10-22 21:00:01 +00:00 committed by Lars Hamann
parent 87b6664073
commit 18ce1ade26
8 changed files with 35 additions and 40 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -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,