r28291 - /desktop/unstable/gtk+3.0/debian/patches/043_notebook_scroll.patch

joss at users.alioth.debian.org joss at users.alioth.debian.org
Sat Jun 4 23:42:14 UTC 2011


Author: joss
Date: Sat Jun  4 23:42:14 2011
New Revision: 28291

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=28291
Log:
Additional modification: make ScrolledWindow events ignore Alt+Scroll 
too. This allows using the wheel to switch tabs from anywhere on the 
area.

Modified:
    desktop/unstable/gtk+3.0/debian/patches/043_notebook_scroll.patch

Modified: desktop/unstable/gtk+3.0/debian/patches/043_notebook_scroll.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B3.0/debian/patches/043_notebook_scroll.patch?rev=28291&op=diff
==============================================================================
--- desktop/unstable/gtk+3.0/debian/patches/043_notebook_scroll.patch [utf-8] (original)
+++ desktop/unstable/gtk+3.0/debian/patches/043_notebook_scroll.patch [utf-8] Sat Jun  4 23:42:14 2011
@@ -74,3 +74,18 @@
  static GList*
  get_tab_at_pos (GtkNotebook *notebook, gint x, gint y)
  {
+Index: gtk+-3.0.10/gtk/gtkscrolledwindow.c
+===================================================================
+--- gtk+-3.0.10.orig/gtk/gtkscrolledwindow.c	2011-06-05 00:19:33.742377450 +0200
++++ gtk+-3.0.10/gtk/gtkscrolledwindow.c	2011-06-05 00:21:13.962867404 +0200
+@@ -1850,6 +1850,10 @@ gtk_scrolled_window_scroll_event (GtkWid
+   scrolled_window = GTK_SCROLLED_WINDOW (widget);
+   priv = scrolled_window->priv;
+ 
++  /* Ignore Alt-scroll to allow it to be taken by GtkNotebook */
++  if (event->state & GDK_MOD1_MASK)
++    return FALSE;
++
+   if (event->direction == GDK_SCROLL_UP || event->direction == GDK_SCROLL_DOWN)
+     range = priv->vscrollbar;
+   else




More information about the pkg-gnome-commits mailing list