diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-07-03 10:18:56 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-07-03 10:18:56 +0800 |
commit | 4799dbbf3bb46ca10a1eec6f76e4855c9d4db1de (patch) | |
tree | 4957192562408c50af1f1a7630507af8fa20a6e7 /widgets | |
parent | dafc74eeaf244b39d1fd0f8498d50d2535ca8bd9 (diff) | |
download | gsoc2013-evolution-4799dbbf3bb46ca10a1eec6f76e4855c9d4db1de.tar gsoc2013-evolution-4799dbbf3bb46ca10a1eec6f76e4855c9d4db1de.tar.gz gsoc2013-evolution-4799dbbf3bb46ca10a1eec6f76e4855c9d4db1de.tar.bz2 gsoc2013-evolution-4799dbbf3bb46ca10a1eec6f76e4855c9d4db1de.tar.lz gsoc2013-evolution-4799dbbf3bb46ca10a1eec6f76e4855c9d4db1de.tar.xz gsoc2013-evolution-4799dbbf3bb46ca10a1eec6f76e4855c9d4db1de.tar.zst gsoc2013-evolution-4799dbbf3bb46ca10a1eec6f76e4855c9d4db1de.zip |
Don't send the double click signal if there's no row selected.
2001-07-02 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Don't send the double click signal
if there's no row selected.
svn path=/trunk/; revision=10712
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/e-table-item.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 035609d5a7..5230ab7771 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -1832,6 +1832,7 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) if (!find_cell (eti, e->button.x, e->button.y, &col, &row, &x1, &y1)) return TRUE; #endif + gtk_object_get(GTK_OBJECT(eti->selection), "cursor_row", &row, "cursor_col", &col, @@ -1843,9 +1844,11 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) button.y = y1; #endif - gtk_signal_emit (GTK_OBJECT (eti), eti_signals [DOUBLE_CLICK], - row, col, &button); - d(g_print("Double click\n")); + if (row != -1 && col != -1) { + gtk_signal_emit (GTK_OBJECT (eti), eti_signals [DOUBLE_CLICK], + row, col, &button); + d(g_print("Double click\n")); + } break; } case GDK_MOTION_NOTIFY: { |