[Sugar-devel] [PATCH sugar] Invoke page up/page down on scrollbars clicks
Manuel Kaufmann
humitos at gmail.com
Fri Nov 2 19:16:24 EDT 2012
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 had 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>
---
bin/sugar-session | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bin/sugar-session b/bin/sugar-session
index 23f88a1..5911052 100755
--- a/bin/sugar-session
+++ b/bin/sugar-session
@@ -253,6 +253,9 @@ def set_theme():
settings.set_property('gtk-theme-name', sugar_theme)
settings.set_property('gtk-icon-theme-name', 'sugar')
+def set_warps_slider():
+ settings = Gtk.Settings.get_default()
+ settings.set_property('gtk-primary-button-warps-slider', False)
def main():
try:
@@ -291,6 +294,7 @@ def main():
set_fonts()
set_theme()
+ set_warps_slider()
# this must be added early, so that it executes and unfreezes the screen
# even when we initially get blocked on the intro screen
--
1.7.11.7
More information about the Sugar-devel
mailing list