diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-31 04:12:57 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-31 04:12:57 +0800 |
commit | 6922ceef9e0b05a3329ca0e7cfcbca68e29f9144 (patch) | |
tree | 96ee636034760c488e53210e4bda0ff10270ba27 | |
parent | 0c26a779918ea2188d2944f17e0213862acef21b (diff) | |
download | gsoc2013-evolution-6922ceef9e0b05a3329ca0e7cfcbca68e29f9144.tar gsoc2013-evolution-6922ceef9e0b05a3329ca0e7cfcbca68e29f9144.tar.gz gsoc2013-evolution-6922ceef9e0b05a3329ca0e7cfcbca68e29f9144.tar.bz2 gsoc2013-evolution-6922ceef9e0b05a3329ca0e7cfcbca68e29f9144.tar.lz gsoc2013-evolution-6922ceef9e0b05a3329ca0e7cfcbca68e29f9144.tar.xz gsoc2013-evolution-6922ceef9e0b05a3329ca0e7cfcbca68e29f9144.tar.zst gsoc2013-evolution-6922ceef9e0b05a3329ca0e7cfcbca68e29f9144.zip |
Remove point handler and just let GnomeCanvasGroup handle it.
2001-10-30 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c (etcta_class_init): Remove point handler
and just let GnomeCanvasGroup handle it.
* e-table.c (e_table_commit_click_to_add): Don't commit the
click_to_add if there's no click_to_add to commit.
svn path=/trunk/; revision=14476
-rw-r--r-- | widgets/table/e-table-click-to-add.c | 11 | ||||
-rw-r--r-- | widgets/table/e-table.c | 3 |
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 |