Commit 7885e365 authored by Nicolas Bruguier's avatar Nicolas Bruguier

debian/patches/fix-gnome-3.20-support.patch:

  - Fix crash with gnome 3.20
parent 9a25ea7d
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
switchboard-plug-mouse-touchpad (0.1.1+testing+bzr67-0+pantheon1) unstable; urgency=medium
.
* New snapshot release.
Author: gandalfn <gandalfn@club-internet.fr>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
--- switchboard-plug-mouse-touchpad-0.1.1+testing+bzr67.orig/src/Backend/TouchpadSettings.vala
+++ switchboard-plug-mouse-touchpad-0.1.1+testing+bzr67/src/Backend/TouchpadSettings.vala
@@ -22,7 +22,7 @@ public class MouseTouchpad.Backend.Touch
public string click_method { get; set; }
public double speed { get; set; }
public string left_handed { get; set; }
- public string scroll_method { get; set; }
+ public bool edge_scrolling_enabled { get; set; }
public bool natural_scroll { get; set; }
public TouchpadSettings () {
--- switchboard-plug-mouse-touchpad-0.1.1+testing+bzr67.orig/src/Widgets/TouchpadSection.vala
+++ switchboard-plug-mouse-touchpad-0.1.1+testing+bzr67/src/Widgets/TouchpadSection.vala
@@ -24,7 +24,7 @@ public class MouseTouchpad.Widgets.Touch
private Gtk.Switch tap_to_click_switch;
private Gtk.ComboBoxText click_method_combobox;
private Gtk.Scale pointer_speed_scale;
- private Gtk.ComboBoxText scrolling_combobox;
+ private Gtk.Switch edge_scrolling_switch;
private Gtk.Switch horizontal_scrolling_switch;
private Gtk.Switch natural_scrolling_switch;
@@ -56,10 +56,8 @@ public class MouseTouchpad.Widgets.Touch
pointer_speed_scale.draw_value = false;
pointer_speed_scale.set_size_request (160, -1);
- scrolling_combobox = new Gtk.ComboBoxText ();
- scrolling_combobox.append ("two-finger-scrolling", _("Two-finger"));
- scrolling_combobox.append ("edge-scrolling", _("Edge"));
- scrolling_combobox.append ("disabled", _("Disabled"));
+ edge_scrolling_switch = new Gtk.Switch ();
+ edge_scrolling_switch.halign = Gtk.Align.START;
horizontal_scrolling_switch = new Gtk.Switch ();
horizontal_scrolling_switch.halign = Gtk.Align.START;
@@ -71,15 +69,15 @@ public class MouseTouchpad.Widgets.Touch
//this.add_entry (_("Disable while typing:"), disable_while_typing_switch);
this.add_entry (_("Tap to click:"), tap_to_click_switch);
this.add_entry (_("Physical clicking:"), click_method_combobox);
- this.add_entry (_("Scrolling:"), scrolling_combobox);
+ this.add_entry (_("Edge scrolling:"), edge_scrolling_switch);
//this.add_entry (_("Horizontal scrolling:"), horizontal_scrolling_switch);
this.add_entry (_("Natural scrolling:"), natural_scrolling_switch);
}
private void create_bindings () {
- touchpad_settings.bind_property ("scroll-method",
- scrolling_combobox,
- "active-id",
+ touchpad_settings.bind_property ("edge-scrolling-enabled",
+ edge_scrolling_switch,
+ "state",
BindingFlags.BIDIRECTIONAL | BindingFlags.SYNC_CREATE);
touchpad_settings.bind_property ("tap-to-click",
fix-gnome-3.20-support.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment