aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-02-28 22:33:11 +0800
committerChris Lahey <clahey@src.gnome.org>2000-02-28 22:33:11 +0800
commite047685e4a4ac36ea34b7108fbbc7612384e206d (patch)
treee5c4d15b329a6e4f864f8e29609aec4306e86fbb
parent9aefcae16c1e716039ddf8e1921e3a6be9635277 (diff)
downloadgsoc2013-evolution-e047685e4a4ac36ea34b7108fbbc7612384e206d.tar
gsoc2013-evolution-e047685e4a4ac36ea34b7108fbbc7612384e206d.tar.gz
gsoc2013-evolution-e047685e4a4ac36ea34b7108fbbc7612384e206d.tar.bz2
gsoc2013-evolution-e047685e4a4ac36ea34b7108fbbc7612384e206d.tar.lz
gsoc2013-evolution-e047685e4a4ac36ea34b7108fbbc7612384e206d.tar.xz
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
-rw-r--r--widgets/e-table/ChangeLog5
-rw-r--r--widgets/e-table/e-table-header-item.c4
-rw-r--r--widgets/e-table/e-table-header.c2
-rw-r--r--widgets/table/e-table-header-item.c4
-rw-r--r--widgets/table/e-table-header.c2
5 files changed, 11 insertions, 6 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index 0c9ee610db..e33b099234 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -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.
diff --git a/widgets/e-table/e-table-header-item.c b/widgets/e-table/e-table-header-item.c
index 6b6146c938..0289703bf2 100644
--- a/widgets/e-table/e-table-header-item.c
+++ b/widgets/e-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/e-table/e-table-header.c b/widgets/e-table/e-table-header.c
index 91aa366932..b1aec7da7e 100644
--- a/widgets/e-table/e-table-header.c
+++ b/widgets/e-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);
}
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);
}