_scroll_notebook

With the addition of 043_notebook_scroll.patch in gtk+3.0, it is
possible to switch tabs with Alt+mouse wheel from anywhere on the
notebook. This patch prevents vte from interecepting the signal.

Corresponding GTK+ bug: GNOME #145244

Gbp-Pq: Name 01_scroll_notebook.patch
This commit is contained in:
Josselin Mouette 2011-06-05 00:26:59 +00:00 committed by openKylinBot
parent 328c173f83
commit a5510b463a
1 changed files with 7 additions and 0 deletions

View File

@ -9455,6 +9455,13 @@ Terminal::widget_scroll(GdkEventScroll *event)
read_modifiers(base_event); read_modifiers(base_event);
#if GTK_CHECK_VERSION (2, 90, 8)
/* Do not intercept Alt+scroll, let the GtkNotebook handle it to switch tabs.
Requires a fixed GTK+, see https://bugzilla.gnome.org/show_bug.cgi?id=145244 */
if (event->state & GDK_MOD1_MASK)
return;
#endif
switch (event->direction) { switch (event->direction) {
case GDK_SCROLL_UP: case GDK_SCROLL_UP:
m_mouse_smooth_scroll_delta -= 1.; m_mouse_smooth_scroll_delta -= 1.;