aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-11-29 08:01:30 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-11-29 22:16:11 +0800
commit4bc40f6663d6a809dda4dcbeae27902b5883cad1 (patch)
treee2f80ac7f19125f4bea5069ce493844d78d52f33 /widgets
parentd50deaf449913deaa71e05960e1c0f97cff05e93 (diff)
downloadgsoc2013-evolution-4bc40f6663d6a809dda4dcbeae27902b5883cad1.tar
gsoc2013-evolution-4bc40f6663d6a809dda4dcbeae27902b5883cad1.tar.gz
gsoc2013-evolution-4bc40f6663d6a809dda4dcbeae27902b5883cad1.tar.bz2
gsoc2013-evolution-4bc40f6663d6a809dda4dcbeae27902b5883cad1.tar.lz
gsoc2013-evolution-4bc40f6663d6a809dda4dcbeae27902b5883cad1.tar.xz
gsoc2013-evolution-4bc40f6663d6a809dda4dcbeae27902b5883cad1.tar.zst
gsoc2013-evolution-4bc40f6663d6a809dda4dcbeae27902b5883cad1.zip
Add the GdkDevice to ETextEventProcessorCommand.
Will be needed for grabs in response to button events.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-cell-text.c4
-rw-r--r--widgets/text/e-text.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index f1d852a951..4d685ae814 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -970,6 +970,8 @@ ect_event (ECellView *ecell_view,
e_tep_event.button.state = button.state;
e_tep_event.button.button = button.button;
e_tep_event.button.position = get_position_from_xy (edit, event->button.x, event->button.y);
+ e_tep_event.button.device =
+ gdk_event_get_device (event);
_get_tep (edit);
edit->actions = 0;
return_val = e_text_event_processor_handle_event (
@@ -993,6 +995,8 @@ ect_event (ECellView *ecell_view,
e_tep_event.button.state = button.state;
e_tep_event.button.button = button.button;
e_tep_event.button.position = get_position_from_xy (edit, event->button.x, event->button.y);
+ e_tep_event.button.device =
+ gdk_event_get_device (event);
_get_tep (edit);
edit->actions = 0;
return_val = e_text_event_processor_handle_event (
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 1a56f9af40..cb97e8e26a 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -1785,6 +1785,8 @@ e_text_event (GnomeCanvasItem *item,
e_tep_event.button.position =
get_position_from_xy (
text, button.x, button.y);
+ e_tep_event.button.device =
+ gdk_event_get_device (event);
_get_tep (text);
return_val = e_text_event_processor_handle_event (
text->tep, &e_tep_event);