[gnome-control-center/gnome-3-20] mouse: Rename touchpad capabilities check API



commit 15d1fbd59a504b86b76e280dfd4b1346f3ce779a
Author: Rui Matos <tiagomatos gmail com>
Date:   Tue Apr 5 17:00:20 2016 +0200

    mouse: Rename touchpad capabilities check API
    
    It's not about synaptics anymore.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764257

 panels/mouse/cc-mouse-caps-helper.c   |   18 +++++++++---------
 panels/mouse/cc-mouse-caps-helper.h   |    6 +++---
 panels/mouse/gnome-mouse-properties.c |    2 +-
 3 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/panels/mouse/cc-mouse-caps-helper.c b/panels/mouse/cc-mouse-caps-helper.c
index ea1678d..125304d 100644
--- a/panels/mouse/cc-mouse-caps-helper.c
+++ b/panels/mouse/cc-mouse-caps-helper.c
@@ -21,9 +21,9 @@
 #include "cc-mouse-caps-helper.h"
 
 static gboolean
-synaptics_check_capabilities_x11 (gboolean *have_two_finger_scrolling,
-                                  gboolean *have_edge_scrolling,
-                                  gboolean *have_tap_to_click)
+touchpad_check_capabilities_x11 (gboolean *have_two_finger_scrolling,
+                                 gboolean *have_edge_scrolling,
+                                 gboolean *have_tap_to_click)
 {
        int numdevices, i;
        XDeviceInfo *devicelist;
@@ -88,14 +88,14 @@ synaptics_check_capabilities_x11 (gboolean *have_two_finger_scrolling,
 }
 
 gboolean
-synaptics_check_capabilities (gboolean *have_two_finger_scrolling,
-                              gboolean *have_edge_scrolling,
-                              gboolean *have_tap_to_click)
+cc_touchpad_check_capabilities (gboolean *have_two_finger_scrolling,
+                                gboolean *have_edge_scrolling,
+                                gboolean *have_tap_to_click)
 {
        if (GDK_IS_X11_DISPLAY (gdk_display_get_default ()))
-               return synaptics_check_capabilities_x11 (have_two_finger_scrolling,
-                                                        have_edge_scrolling,
-                                                        have_tap_to_click);
+               return touchpad_check_capabilities_x11 (have_two_finger_scrolling,
+                                                        have_edge_scrolling,
+                                                        have_tap_to_click);
        /* else we unconditionally show all touchpad knobs */
        return FALSE;
 }
diff --git a/panels/mouse/cc-mouse-caps-helper.h b/panels/mouse/cc-mouse-caps-helper.h
index 7ab2605..51c8314 100644
--- a/panels/mouse/cc-mouse-caps-helper.h
+++ b/panels/mouse/cc-mouse-caps-helper.h
@@ -27,8 +27,8 @@
 #include <X11/Xatom.h>
 #include <X11/extensions/XInput.h>
 
-gboolean synaptics_check_capabilities (gboolean *have_two_finger_scrolling,
-                                       gboolean *have_edge_scrolling,
-                                       gboolean *have_tap_to_click);
+gboolean cc_touchpad_check_capabilities (gboolean *have_two_finger_scrolling,
+                                         gboolean *have_edge_scrolling,
+                                         gboolean *have_tap_to_click);
 
 #endif /* _CC_MOUSE_CAPS_HELPER_H_ */
diff --git a/panels/mouse/gnome-mouse-properties.c b/panels/mouse/gnome-mouse-properties.c
index bb9712c..6f3fbf5 100644
--- a/panels/mouse/gnome-mouse-properties.c
+++ b/panels/mouse/gnome-mouse-properties.c
@@ -79,7 +79,7 @@ setup_touchpad_options (CcMousePropertiesPrivate *d)
        gboolean have_edge_scrolling;
        gboolean have_tap_to_click;
 
-       synaptics_check_capabilities (&have_two_finger_scrolling, &have_edge_scrolling, &have_tap_to_click);
+       cc_touchpad_check_capabilities (&have_two_finger_scrolling, &have_edge_scrolling, &have_tap_to_click);
 
        gtk_widget_show_all (WID ("touchpad-frame"));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]