aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-04-03 13:34:27 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-04-03 13:34:27 +0800
commit44882da7a7193185f7b593ac3799758c5065f6e4 (patch)
tree40676c35764985badb55909b0573ff33b1d68364
parentc62c3c13a1901160d468f122c0124c6e51c45a78 (diff)
downloadgsoc2013-evolution-44882da7a7193185f7b593ac3799758c5065f6e4.tar.gz
gsoc2013-evolution-44882da7a7193185f7b593ac3799758c5065f6e4.tar.zst
gsoc2013-evolution-44882da7a7193185f7b593ac3799758c5065f6e4.zip
Typo fix; call e_cell_unrealize(), not e_cell_realize().
2001-04-02 Federico Mena Quintero <federico@ximian.com> * e-cell-popup.c (ecp_unrealize): Typo fix; call e_cell_unrealize(), not e_cell_realize(). * e-cell-text.c (ect_event): Removed fallback "else", from "if (edit_display)"since our planned return value is already zero and we do need to unbuild_current_cell() instead of returning immediately. * e-table-state.c (etst_destroy): Free the expansions field. * e-table.c (e_table_set_state_object): Do not ref the header since we just created it! svn path=/trunk/; revision=9123
-rw-r--r--widgets/table/e-cell-popup.c2
-rw-r--r--widgets/table/e-cell-text.c2
-rw-r--r--widgets/table/e-table-state.c10
-rw-r--r--widgets/table/e-table.c2
4 files changed, 9 insertions, 7 deletions
diff --git a/widgets/table/e-cell-popup.c b/widgets/table/e-cell-popup.c
index a4bba62555..224227e209 100644
--- a/widgets/table/e-cell-popup.c
+++ b/widgets/table/e-cell-popup.c
@@ -241,7 +241,7 @@ ecp_unrealize (ECellView *ecv)
{
ECellPopupView *ecp_view = (ECellPopupView *) ecv;
- e_cell_realize (ecp_view->child_view);
+ e_cell_unrealize (ecp_view->child_view);
if (parent_class->unrealize)
(* parent_class->unrealize) (ecv);
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index 4143491c64..7e045853b3 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -798,8 +798,6 @@ ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col,
}
}
- else
- return 0;
break;
case GDK_BUTTON_PRESS: /* Fall Through */
case GDK_BUTTON_RELEASE:
diff --git a/widgets/table/e-table-state.c b/widgets/table/e-table-state.c
index c5b19b42a2..63947f1516 100644
--- a/widgets/table/e-table-state.c
+++ b/widgets/table/e-table-state.c
@@ -31,8 +31,15 @@ etst_destroy (GtkObject *object)
ETableState *etst = E_TABLE_STATE (object);
gtk_object_unref (GTK_OBJECT (etst->sort_info));
- if (etst->columns)
+ if (etst->columns) {
g_free (etst->columns);
+ etst->columns = NULL;
+ }
+
+ if (etst->expansions) {
+ g_free (etst->expansions);
+ etst->expansions = NULL;
+ }
GTK_OBJECT_CLASS (etst_parent_class)->destroy (object);
}
@@ -234,4 +241,3 @@ e_table_state_duplicate (ETableState *state)
return new_state;
}
-
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index b2eb4dd1fe..2994d3e273 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -781,8 +781,6 @@ e_table_set_state_object(ETable *e_table, ETableState *state)
if (e_table->header)
gtk_object_unref(GTK_OBJECT(e_table->header));
e_table->header = e_table_state_to_header (GTK_WIDGET(e_table), e_table->full_header, state);
- if (e_table->header)
- gtk_object_ref(GTK_OBJECT(e_table->header));
gtk_object_set (GTK_OBJECT (e_table->header),
"width", (double) (GTK_WIDGET(e_table->table_canvas)->allocation.width),