diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-11-29 08:01:30 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-11-29 22:16:11 +0800 |
commit | 4bc40f6663d6a809dda4dcbeae27902b5883cad1 (patch) | |
tree | e2f80ac7f19125f4bea5069ce493844d78d52f33 /e-util | |
parent | d50deaf449913deaa71e05960e1c0f97cff05e93 (diff) | |
download | gsoc2013-evolution-4bc40f6663d6a809dda4dcbeae27902b5883cad1.tar.gz 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 'e-util')
-rw-r--r-- | e-util/e-text-event-processor-emacs-like.c | 1 | ||||
-rw-r--r-- | e-util/e-text-event-processor-types.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/e-util/e-text-event-processor-emacs-like.c b/e-util/e-text-event-processor-emacs-like.c index fa724a2c77..2a42ae939c 100644 --- a/e-util/e-text-event-processor-emacs-like.c +++ b/e-util/e-text-event-processor-emacs-like.c @@ -133,6 +133,7 @@ e_text_event_processor_emacs_like_event (ETextEventProcessor *tep, case GDK_BUTTON_PRESS: if (event->button.button == 1 || event->button.button == 2) { command.action = E_TEP_GRAB; + command.device = event->button.device; command.time = event->button.time; g_signal_emit_by_name (tep, "command", &command); if (event->button.button == 1 && event->button.state & GDK_SHIFT_MASK) diff --git a/e-util/e-text-event-processor-types.h b/e-util/e-text-event-processor-types.h index 6e9d155f8c..d7d0bb3854 100644 --- a/e-util/e-text-event-processor-types.h +++ b/e-util/e-text-event-processor-types.h @@ -85,6 +85,7 @@ typedef struct { ETextEventProcessorCommandAction action; gint value; const gchar *string; + GdkDevice *device; guint32 time; } ETextEventProcessorCommand; @@ -94,6 +95,7 @@ typedef struct { guint state; guint button; gint position; + GdkDevice *device; } ETextEventProcessorEventButton; typedef struct { |