diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-08-28 23:27:38 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-08-28 23:27:38 +0800 |
commit | 876558f75fd7342eb4cb95a45c6173d4a876bbc1 (patch) | |
tree | c96a7bf68309db331b3c3b7d38b0e592b0f880f3 /widgets/table/e-table.c | |
parent | e3913975e84bff02feedb4252d4ecb2cddce211f (diff) | |
download | gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.tar.gz gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.tar.zst gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.zip |
Remove a ton of (hopefully harmless) warnings from the ETable code.
svn path=/trunk/; revision=5081
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r-- | widgets/table/e-table.c | 11 |
1 files changed, 8 insertions, 3 deletions
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 |