From ad7d90b2242ed1719d000de510acf56875c61ac7 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 19 Feb 2008 19:05:09 +0000 Subject: ** Fix for bug #209353 2008-02-19 Milan Crha ** Fix for bug #209353 * e-util/e-text-event-processor-emacs-like.c: (e_text_event_processor_emacs_like_event): Allow paste text on mouse middle button click. * widgets/table/e-table-item.c: (eti_event): Pass Home/End keys to cell when editing. svn path=/trunk/; revision=35055 --- e-util/ChangeLog | 8 ++++++++ e-util/e-text-event-processor-emacs-like.c | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'e-util') 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 + + ** 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 ** 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: -- cgit