Fixed a couple of crash bugs.

2000-02-28  Christopher James Lahey  <clahey@helixcode.com>

        * e-table-header-item.c, e-table-header.c: Fixed a couple of crash
        bugs.

svn path=/trunk/; revision=1975
This commit is contained in:
Christopher James Lahey
2000-02-28 14:33:11 +00:00
committed by Chris Lahey
parent 9aefcae16c
commit e047685e4a
5 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2000-02-28 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c, e-table-header.c: Fixed a couple of crash
bugs.
2000-02-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Made the E table item redraw properly.

View File

@ -68,8 +68,8 @@ static GtkTargetEntry ethi_drop_types [] = {
static void
ethi_destroy (GtkObject *object){
ETableHeaderItem *ethi = E_TABLE_HEADER_ITEM (object);
gtk_object_unref (GTK_OBJECT (ethi->eth));
ethi_drop_table_header (ethi);
if (GTK_OBJECT_CLASS (ethi_parent_class)->destroy)
(*GTK_OBJECT_CLASS (ethi_parent_class)->destroy) (object);

View File

@ -33,7 +33,7 @@ e_table_header_destroy (GtkObject *object)
/*
* Destroy columns
*/
for (i = 0; i < cols; i++){
for (i = cols - 1; i >= 0; i--){
e_table_header_remove (eth, i);
}

View File

@ -68,8 +68,8 @@ static GtkTargetEntry ethi_drop_types [] = {
static void
ethi_destroy (GtkObject *object){
ETableHeaderItem *ethi = E_TABLE_HEADER_ITEM (object);
gtk_object_unref (GTK_OBJECT (ethi->eth));
ethi_drop_table_header (ethi);
if (GTK_OBJECT_CLASS (ethi_parent_class)->destroy)
(*GTK_OBJECT_CLASS (ethi_parent_class)->destroy) (object);

View File

@ -33,7 +33,7 @@ e_table_header_destroy (GtkObject *object)
/*
* Destroy columns
*/
for (i = 0; i < cols; i++){
for (i = cols - 1; i >= 0; i--){
e_table_header_remove (eth, i);
}