aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table-click-to-add.c11
-rw-r--r--widgets/table/e-table.c3
2 files changed, 3 insertions, 11 deletions
diff --git a/widgets/table/e-table-click-to-add.c b/widgets/table/e-table-click-to-add.c
index 4e32b3d674..7c42b8c2e1 100644
--- a/widgets/table/e-table-click-to-add.c
+++ b/widgets/table/e-table-click-to-add.c
@@ -271,14 +271,6 @@ etcta_unrealize (GnomeCanvasItem *item)
(*GNOME_CANVAS_ITEM_CLASS (etcta_parent_class)->unrealize)(item);
}
-static double
-etcta_point (GnomeCanvasItem *item, double x, double y, int cx, int cy,
- GnomeCanvasItem **actual_item)
-{
- *actual_item = item;
- return 0.0;
-}
-
static void finish_editing (ETableClickToAdd *etcta);
static int
@@ -345,7 +337,7 @@ static int
etcta_event (GnomeCanvasItem *item, GdkEvent *e)
{
ETableClickToAdd *etcta = E_TABLE_CLICK_TO_ADD (item);
-
+
switch (e->type){
case GDK_BUTTON_PRESS:
if (etcta->text) {
@@ -447,7 +439,6 @@ etcta_class_init (ETableClickToAddClass *klass)
item_class->realize = etcta_realize;
item_class->unrealize = etcta_unrealize;
- item_class->point = etcta_point;
item_class->event = etcta_event;
gtk_object_add_arg_type ("ETableClickToAdd::header", GTK_TYPE_OBJECT,
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 2e3efdc05c..ad0bc54855 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -1503,7 +1503,8 @@ e_table_right_click_up (ETable *table)
void
e_table_commit_click_to_add (ETable *table)
{
- e_table_click_to_add_commit(E_TABLE_CLICK_TO_ADD(table->click_to_add));
+ if (table->click_to_add)
+ e_table_click_to_add_commit(E_TABLE_CLICK_TO_ADD(table->click_to_add));
}
static void