Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 32624 Details for
Bug 52951
(PATCH)Provide support for SHIFT-Up/Down line scrolling in vte/Gnome-terminal.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for line scrolling in vte/g-t
vte-line-scroll.patch (text/plain), 2.18 KB, created by
devsk
on 2004-06-04 00:19:54 UTC
(
hide
)
Description:
Patch for line scrolling in vte/g-t
Filename:
MIME Type:
Creator:
devsk
Created:
2004-06-04 00:19:54 UTC
Size:
2.18 KB
patch
obsolete
>--- vte.c.ORG 2004-03-06 10:28:09.000000000 -0800 >+++ vte.c 2004-03-06 10:44:23.000000000 -0800 >@@ -1917,4 +1917,31 @@ > } > >+/* Scroll up or down in the current screen. */ >+static void >+vte_terminal_scroll_lines(VteTerminal *terminal, gint lines) >+{ >+ glong destination; >+ g_return_if_fail(VTE_IS_TERMINAL(terminal)); >+#ifdef VTE_DEBUG >+ if (_vte_debug_on(VTE_DEBUG_IO)) { >+ fprintf(stderr, "Scrolling %d lines.\n", lines); >+ } >+#endif >+ /* Calculate the ideal position where we want to be before clamping. */ >+ destination = floor(gtk_adjustment_get_value(terminal->adjustment)); >+ destination += lines; >+ /* Can't scroll past data we have. */ >+ destination = CLAMP(destination, >+ terminal->adjustment->lower, >+ terminal->adjustment->upper - terminal->row_count); >+ /* Tell the scrollbar to adjust itself. */ >+ gtk_adjustment_set_value(terminal->adjustment, destination); >+ /* Clear dingus match set. */ >+ vte_terminal_match_contents_clear(terminal); >+ /* Notify viewers that the contents have changed. */ >+ vte_terminal_emit_contents_changed(terminal); >+} >+ >+ > /* Scroll so that the scroll delta is the minimum value. */ > static void >@@ -8038,4 +8065,22 @@ > } > break; >+ case GDK_KP_Up: >+ case GDK_Up: >+ if (terminal->pvt->modifiers & GDK_SHIFT_MASK) { >+ vte_terminal_scroll_lines(terminal, -1); >+ scrolled = TRUE; >+ handled = TRUE; >+ suppress_meta_esc = TRUE; >+ } >+ break; >+ case GDK_KP_Down: >+ case GDK_Down: >+ if (terminal->pvt->modifiers & GDK_SHIFT_MASK) { >+ vte_terminal_scroll_lines(terminal, 1); >+ scrolled = TRUE; >+ handled = TRUE; >+ suppress_meta_esc = TRUE; >+ } >+ break; > case GDK_KP_Home: > case GDK_Home:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52951
:
32624
|
82727