diff options
author | JP Rosevear <jpr@ximian.com> | 2002-10-22 13:49:55 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-10-22 13:49:55 +0800 |
commit | ef12fcd08f597d3418589be823bf7f54e26c34b6 (patch) | |
tree | 951dcc71dc541a168958e12f2e4e0fd5bd137f71 /widgets/table | |
parent | b10ce5577d3939b895e270181ebe569e8addc58e (diff) | |
download | gsoc2013-evolution-ef12fcd08f597d3418589be823bf7f54e26c34b6.tar gsoc2013-evolution-ef12fcd08f597d3418589be823bf7f54e26c34b6.tar.gz gsoc2013-evolution-ef12fcd08f597d3418589be823bf7f54e26c34b6.tar.bz2 gsoc2013-evolution-ef12fcd08f597d3418589be823bf7f54e26c34b6.tar.lz gsoc2013-evolution-ef12fcd08f597d3418589be823bf7f54e26c34b6.tar.xz gsoc2013-evolution-ef12fcd08f597d3418589be823bf7f54e26c34b6.tar.zst gsoc2013-evolution-ef12fcd08f597d3418589be823bf7f54e26c34b6.zip |
don't emit a signal if we couldn't find the view row
2002-10-18 JP Rosevear <jpr@ximian.com>
* e-table-item.c (eti_cursor_activated): don't emit a signal if we
couldn't find the view row
svn path=/trunk/; revision=18405
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table-item.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 391e6c4e20..cc4c52ad4b 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -3087,8 +3087,10 @@ eti_cursor_activated (ESelectionModel *selection, int row, int col, ETableItem * if (eti_editing(eti)) e_table_item_leave_edit_(eti); - gtk_signal_emit (GTK_OBJECT (eti), eti_signals [CURSOR_ACTIVATED], - view_row); + + if (view_row != -1) + gtk_signal_emit (GTK_OBJECT (eti), eti_signals [CURSOR_ACTIVATED], + view_row); } static void |