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:
committed by
Chris Lahey
parent
9aefcae16c
commit
e047685e4a
@ -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.
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user