diff options
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/ChangeLog | 8 | ||||
-rw-r--r-- | e-util/e-text-event-processor-emacs-like.c | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 148f7350fe..a52c585e10 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,11 @@ +2008-02-19 Milan Crha <mcrha@redhat.com> + + ** Fix for bug #209353 + + * e-text-event-processor-emacs-like.c: + (e_text_event_processor_emacs_like_event): + Allow paste text on mouse middle button click. + 2008-02-18 Milan Crha <mcrha@redhat.com> ** Part of fix for bug #515744 diff --git a/e-util/e-text-event-processor-emacs-like.c b/e-util/e-text-event-processor-emacs-like.c index dfde0cf446..e6416a78e9 100644 --- a/e-util/e-text-event-processor-emacs-like.c +++ b/e-util/e-text-event-processor-emacs-like.c @@ -131,18 +131,18 @@ e_text_event_processor_emacs_like_event (ETextEventProcessor *tep, ETextEventPro */ switch (event->type) { case GDK_BUTTON_PRESS: - if (event->button.button == 1) { + if (event->button.button == 1 || event->button.button == 2) { command.action = E_TEP_GRAB; command.time = event->button.time; g_signal_emit_by_name (tep, "command", &command); - if (event->button.state & GDK_SHIFT_MASK) + if (event->button.button == 1 && event->button.state & GDK_SHIFT_MASK) command.action = E_TEP_SELECT; else command.action = E_TEP_MOVE; command.position = E_TEP_VALUE; command.value = event->button.position; command.time = event->button.time; - tep_el->mouse_down = TRUE; + tep_el->mouse_down = event->button.button == 1; } break; case GDK_2BUTTON_PRESS: |