diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-02-05 04:00:00 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-02-05 04:00:00 +0800 |
commit | 9a8b904d09027134c762a34f1ad961e05885f069 (patch) | |
tree | 2246855a64f5e606f156911fe354bfbc3000a9f4 /widgets/table | |
parent | 1b96583c0c6142969e366409bdfd371f078fc683 (diff) | |
download | gsoc2013-evolution-9a8b904d09027134c762a34f1ad961e05885f069.tar gsoc2013-evolution-9a8b904d09027134c762a34f1ad961e05885f069.tar.gz gsoc2013-evolution-9a8b904d09027134c762a34f1ad961e05885f069.tar.bz2 gsoc2013-evolution-9a8b904d09027134c762a34f1ad961e05885f069.tar.lz gsoc2013-evolution-9a8b904d09027134c762a34f1ad961e05885f069.tar.xz gsoc2013-evolution-9a8b904d09027134c762a34f1ad961e05885f069.tar.zst gsoc2013-evolution-9a8b904d09027134c762a34f1ad961e05885f069.zip |
Make this not error out if ecol is not found, but simply return -1.
2001-02-04 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (view_to_model_col): Make this not error out if
ecol is not found, but simply return -1.
(eti_event): Don't call view_to_model_col here as we already have
a model column.
svn path=/trunk/; revision=7960
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table-item.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index f0d7713123..828aaf357a 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -125,8 +125,7 @@ inline static gint view_to_model_col(ETableItem *eti, int col) { ETableCol *ecol = e_table_header_get_column (eti->header, col); - g_return_val_if_fail (ecol != NULL, -1); - return ecol->col_idx; + return ecol ? ecol->col_idx : -1; } static gboolean @@ -1772,7 +1771,7 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) #endif gtk_signal_emit (GTK_OBJECT (eti), eti_signals [DOUBLE_CLICK], - row, view_to_model_col (eti, col), &button); + row, col, &button); g_print("Double click\n"); break; } |