aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-03-23 23:46:50 +0800
committerChris Lahey <clahey@src.gnome.org>2001-03-23 23:46:50 +0800
commit320e99019744888db9c5a66063314e316b444de4 (patch)
tree31d3f1d7eb7e88c150f1768c8ae14ff85e4aceea
parent4f26eac120fd30b1f8199a6aec29c436bfb558a4 (diff)
downloadgsoc2013-evolution-320e99019744888db9c5a66063314e316b444de4.tar
gsoc2013-evolution-320e99019744888db9c5a66063314e316b444de4.tar.gz
gsoc2013-evolution-320e99019744888db9c5a66063314e316b444de4.tar.bz2
gsoc2013-evolution-320e99019744888db9c5a66063314e316b444de4.tar.lz
gsoc2013-evolution-320e99019744888db9c5a66063314e316b444de4.tar.xz
gsoc2013-evolution-320e99019744888db9c5a66063314e316b444de4.tar.zst
gsoc2013-evolution-320e99019744888db9c5a66063314e316b444de4.zip
Ignore these signals if we aren't realized yet.
2001-03-23 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_cursor_change, eti_cursor_activated): Ignore these signals if we aren't realized yet. svn path=/trunk/; revision=8917
-rw-r--r--widgets/table/e-table-item.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index ca36054ce5..bd308a24e7 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -2251,9 +2251,15 @@ e_table_item_get_focused_column (ETableItem *eti)
static void
eti_cursor_change (ETableSelectionModel *selection, int row, int col, ETableItem *eti)
{
- int view_row = model_to_view_row(eti, row);
- int view_col = model_to_view_col(eti, col);
+ int view_row;
+ int view_col;
+
+ if (!(GTK_OBJECT_FLAGS(eti) & GNOME_CANVAS_ITEM_REALIZED))
+ return;
+ view_row = model_to_view_row(eti, row);
+ view_col = model_to_view_col(eti, col);
+
if (view_row == -1 || view_col == -1) {
e_table_item_leave_edit (eti);
return;
@@ -2277,9 +2283,15 @@ eti_cursor_change (ETableSelectionModel *selection, int row, int col, ETableItem
static void
eti_cursor_activated (ETableSelectionModel *selection, int row, int col, ETableItem *eti)
{
- int view_row = model_to_view_row(eti, row);
- int view_col = model_to_view_col(eti, col);
+ int view_row;
+ int view_col;
+ if (!(GTK_OBJECT_FLAGS(eti) & GNOME_CANVAS_ITEM_REALIZED))
+ return;
+
+ view_row = model_to_view_row(eti, row);
+ view_col = model_to_view_col(eti, col);
+
if (view_row == -1 || view_col == -1) {
e_table_item_leave_edit (eti);
return;
@@ -2294,6 +2306,9 @@ eti_cursor_activated (ETableSelectionModel *selection, int row, int col, ETableI
static void
eti_selection_change (ETableSelectionModel *selection, ETableItem *eti)
{
+ if (!(GTK_OBJECT_FLAGS(eti) & GNOME_CANVAS_ITEM_REALIZED))
+ return;
+
eti->needs_redraw = TRUE;
gnome_canvas_item_request_update(GNOME_CANVAS_ITEM(eti));
}