[Sugar-devel] [PATCH sugar-toolkit-gtk3] Sugar scroll bar clicks should invoke page up/page down SL #3859

Manuel Quiñones manuq at laptop.org
Mon Nov 5 05:45:44 EST 2012


Excellent!  And yes as Gonzalo said this change is needed in
sugar-session too, as your other patch does, so both are welcome.

@Daniel: sugar-build will crash with this change because the setting
is there since GTK+ 3.6 and we have it at a commit from September 7.

In this list you can see that olpc builds are using gtk3-3.6.0 from
the Fedora 18 rpm:

http://build.laptop.org/13.1.0/os9/xo-4/00009o4.packages.txt

Also would be nice to update pygobject and others, and use them from
packages now that there are for both Fedora and Ubuntu.

Thanks!



2012/11/2 Manuel Kaufmann <humitos at gmail.com>:
> The default value of 'gtk-primary-button-warps-slider' in Gtk3 is
> True[1] and in gtk2 is False[2]. So, this patch sets that property to False
> to keep the same behaviour we have before.
>
> [1] http://developer.gnome.org/gtk3/stable/GtkSettings.html#GtkSettings--gtk-primary-button-warps-slider
> [2] http://developer.gnome.org/gtk/2.24/GtkSettings.html#GtkSettings--gtk-primary-button-warps-slider
>
> Signed-off-by: Manuel Kaufmann <humitos at gmail.com>
> ---
>  src/sugar3/activity/activity.py | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity/activity.py
> index 3325f47..d799aee 100644
> --- a/src/sugar3/activity/activity.py
> +++ b/src/sugar3/activity/activity.py
> @@ -271,6 +271,7 @@ class Activity(Window, Gtk.Container):
>          settings.set_property('gtk-icon-theme-name', 'sugar')
>          settings.set_property('gtk-font-name',
>                                '%s %f' % (style.FONT_FACE, style.FONT_SIZE))
> +        settings.set_property('gtk-primary-button-warps-slider', False)
>
>          Window.__init__(self)
>
> --
> 1.7.11.7
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel



-- 
.. manuq ..


More information about the Sugar-devel mailing list