aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-07-05 23:31:23 +0800
committerChris Lahey <clahey@src.gnome.org>2001-07-05 23:31:23 +0800
commit29344f2ea86d3ea81bd5686728e7c4045062a0aa (patch)
treea5e4bc1854d063166646889d461d80361f8d0e67 /widgets
parent6d8364f1dec83a0a26a8be1380cda023e6e3d12b (diff)
downloadgsoc2013-evolution-29344f2ea86d3ea81bd5686728e7c4045062a0aa.tar
gsoc2013-evolution-29344f2ea86d3ea81bd5686728e7c4045062a0aa.tar.gz
gsoc2013-evolution-29344f2ea86d3ea81bd5686728e7c4045062a0aa.tar.bz2
gsoc2013-evolution-29344f2ea86d3ea81bd5686728e7c4045062a0aa.tar.lz
gsoc2013-evolution-29344f2ea86d3ea81bd5686728e7c4045062a0aa.tar.xz
gsoc2013-evolution-29344f2ea86d3ea81bd5686728e7c4045062a0aa.tar.zst
gsoc2013-evolution-29344f2ea86d3ea81bd5686728e7c4045062a0aa.zip
Don't scroll to the cursor on grab, ungrab, noop, and copy commands.
2001-07-05 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_command): Don't scroll to the cursor on grab, ungrab, noop, and copy commands. svn path=/trunk/; revision=10808
Diffstat (limited to 'widgets')
-rw-r--r--widgets/text/e-text.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 2b26e07a72..fadb390c4f 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -3435,6 +3435,7 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
{
EText *text = E_TEXT(data);
int sel_start, sel_end;
+ gboolean scroll = TRUE;
switch (command->action) {
case E_TEP_MOVE:
@@ -3491,6 +3492,7 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
if (text->timer) {
g_timer_reset(text->timer);
}
+ scroll = FALSE;
break;
case E_TEP_PASTE:
e_text_get_selection (text, clipboard_atom, command->time);
@@ -3515,15 +3517,18 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK,
text->i_cursor,
command->time);
+ scroll = FALSE;
break;
case E_TEP_UNGRAB:
gnome_canvas_item_ungrab (GNOME_CANVAS_ITEM(text), command->time);
+ scroll = FALSE;
break;
case E_TEP_NOP:
+ scroll = FALSE;
break;
}
- if (!text->button_down) {
+ if (scroll && !text->button_down) {
int x;
int i;
struct line *lines = text->lines;