aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-21 11:17:22 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-21 11:17:22 +0800
commite8ab14846b8f723882e374b0f0ad4754fcc395e8 (patch)
tree43f125b4d67ef97b1b6a91deaee761def5240bfe /widgets/e-table
parentc62863d0877fd19c90ba8a15d4438611599b0979 (diff)
downloadgsoc2013-evolution-e8ab14846b8f723882e374b0f0ad4754fcc395e8.tar.gz
gsoc2013-evolution-e8ab14846b8f723882e374b0f0ad4754fcc395e8.tar.zst
gsoc2013-evolution-e8ab14846b8f723882e374b0f0ad4754fcc395e8.zip
Fix cursor column information.
2000-06-20 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Fix cursor column information. svn path=/trunk/; revision=3661
Diffstat (limited to 'widgets/e-table')
-rw-r--r--widgets/e-table/ChangeLog4
-rw-r--r--widgets/e-table/e-table-item.c15
2 files changed, 13 insertions, 6 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index 59463dc319..e575f1068f 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,5 +1,9 @@
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
+ * e-table-item.c: Fix cursor column information.
+
+2000-06-20 Christopher James Lahey <clahey@helixcode.com>
+
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h: Removed the unfocus method since
that's handled by the canvas itself now.
diff --git a/widgets/e-table/e-table-item.c b/widgets/e-table/e-table-item.c
index e385d97181..8f0adc29d8 100644
--- a/widgets/e-table/e-table-item.c
+++ b/widgets/e-table/e-table-item.c
@@ -1562,10 +1562,12 @@ e_table_item_focus (ETableItem *eti, int col, int row)
col = eti->cols - 1;
}
- eti->cursor_col = col;
-
if (row != -1) {
- e_canvas_item_set_cursor(GNOME_CANVAS_ITEM(eti), (gpointer) row);
+ int *nums;
+ nums = g_new(int, 2);
+ nums[0] = row;
+ nums[1] = col;
+ e_canvas_item_set_cursor(GNOME_CANVAS_ITEM(eti), nums);
}
}
@@ -1623,8 +1625,9 @@ e_table_item_select_row (ETableItem *eti, int row)
static void
eti_selection (GnomeCanvasItem *item, int flags, gpointer data)
{
- int row = (int) data;
- int col = 0;
+ int *nums = data;
+ int row = nums[0];
+ int col = nums[1];
ETableItem *eti = E_TABLE_ITEM(item);
int selected = e_table_item_is_row_selected(eti, row);
int cursored = (row == eti->cursor_row);
@@ -1649,7 +1652,7 @@ eti_selection (GnomeCanvasItem *item, int flags, gpointer data)
eti->cursor_col = -1;
}
if (flags & E_CANVAS_ITEM_SELECTION_DELETE_DATA) {
-
+ g_free(data);
}
}