diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-02-28 22:33:11 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-02-28 22:33:11 +0800 |
commit | e047685e4a4ac36ea34b7108fbbc7612384e206d (patch) | |
tree | e5c4d15b329a6e4f864f8e29609aec4306e86fbb /widgets/table | |
parent | 9aefcae16c1e716039ddf8e1921e3a6be9635277 (diff) | |
download | gsoc2013-evolution-e047685e4a4ac36ea34b7108fbbc7612384e206d.tar.gz gsoc2013-evolution-e047685e4a4ac36ea34b7108fbbc7612384e206d.tar.zst gsoc2013-evolution-e047685e4a4ac36ea34b7108fbbc7612384e206d.zip |
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
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table-header-item.c | 4 | ||||
-rw-r--r-- | widgets/table/e-table-header.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index 6b6146c938..0289703bf2 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -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); diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c index 91aa366932..b1aec7da7e 100644 --- a/widgets/table/e-table-header.c +++ b/widgets/table/e-table-header.c @@ -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); } |