[gnome-control-center] mouse: Check synaptics capabilities only on X11
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] mouse: Check synaptics capabilities only on X11
- Date: Wed, 21 Jan 2015 13:26:54 +0000 (UTC)
commit d341f77756e24bc24e4ebcc2299c9ba2a9d8d863
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Jan 20 21:17:13 2015 +0100
mouse: Check synaptics capabilities only on X11
On other backends we don't have a way to check for synaptics
capabilities so we just show all the touchpad knobs there.
https://bugzilla.gnome.org/show_bug.cgi?id=743266
panels/mouse/gnome-mouse-properties.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/panels/mouse/gnome-mouse-properties.c b/panels/mouse/gnome-mouse-properties.c
index 3e45ec8..2c7079b 100644
--- a/panels/mouse/gnome-mouse-properties.c
+++ b/panels/mouse/gnome-mouse-properties.c
@@ -98,7 +98,7 @@ scrollmethod_changed_event (GtkToggleButton *button, CcMousePropertiesPrivate *d
}
static void
-synaptics_check_capabilities (CcMousePropertiesPrivate *d)
+synaptics_check_capabilities_x11 (CcMousePropertiesPrivate *d)
{
int numdevices, i;
XDeviceInfo *devicelist;
@@ -146,6 +146,14 @@ synaptics_check_capabilities (CcMousePropertiesPrivate *d)
XFreeDeviceList (devicelist);
}
+static void
+synaptics_check_capabilities (CcMousePropertiesPrivate *d)
+{
+ if (GDK_IS_X11_DISPLAY (gdk_display_get_default ()))
+ synaptics_check_capabilities_x11 (d);
+ /* else we unconditionally show all touchpad knobs */
+}
+
static gboolean
get_touchpad_enabled (GSettings *settings)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]