From 876558f75fd7342eb4cb95a45c6173d4a876bbc1 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 28 Aug 2000 15:27:38 +0000 Subject: Remove a ton of (hopefully harmless) warnings from the ETable code. svn path=/trunk/; revision=5081 --- widgets/table/e-table.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'widgets/table/e-table.c') diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 7906ad877d..89f032b401 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -146,7 +146,10 @@ et_destroy (GtkObject *object) gtk_object_unref (GTK_OBJECT (et->header)); gtk_object_unref (GTK_OBJECT (et->sort_info)); gtk_object_unref (GTK_OBJECT (et->sorter)); - gtk_widget_destroy (GTK_WIDGET (et->header_canvas)); + + if (et->header_canvas != NULL) + gtk_widget_destroy (GTK_WIDGET (et->header_canvas)); + gtk_widget_destroy (GTK_WIDGET (et->table_canvas)); if (et->rebuild_idle_id) { @@ -997,8 +1000,10 @@ set_scroll_adjustments (ETable *table, hadjustment); gtk_layout_set_vadjustment (GTK_LAYOUT(table->table_canvas), vadjustment); - gtk_layout_set_hadjustment (GTK_LAYOUT(table->header_canvas), - hadjustment); + + if (table->header_canvas != NULL) + gtk_layout_set_hadjustment (GTK_LAYOUT(table->header_canvas), + hadjustment); } gint -- cgit