summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-08-28 04:16:48 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-08-28 04:16:48 +0000
commit00b80b8a6ed76d1242eef490707a6f4f16aebdff (patch)
tree820fd191f6835b5e0d02341c8f29129a3df47554
parentac4cf6cdecbd7953b05c3daf2ab7f6614e5a83fe (diff)
Stop autoscrolling on button release.vte_0_8_10
* src/vte.c: Stop autoscrolling on button release.
-rw-r--r--ChangeLog2
-rw-r--r--src/vte.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 594bce3..b9f4c85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
2002-08-27 nalin
+ * src/vte.c: Stop autoscrolling on button release.
+2002-08-27 nalin
* src/vte.c: When autoscrolling, clamp the new boundary to what the user
can see.
2002-08-27 nalin
diff --git a/src/vte.c b/src/vte.c
index e16b0ef..cb9783f 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -8358,6 +8358,11 @@ vte_terminal_button_release(GtkWidget *widget, GdkEventButton *event)
if (event->button == 1) {
vte_terminal_copy(terminal, GDK_SELECTION_PRIMARY);
}
+
+ /* Disconnect from autoscroll requests. */
+ if (terminal->pvt->mouse_autoscroll_tag != -1) {
+ g_source_remove(terminal->pvt->mouse_autoscroll_tag);
+ }
}
/* Hilite any matches. */