[mutter/wip/tablet-protocol-v2: 147/149] wayland: Export function to tell whether a button belongs to a pad group



commit aef997f7a15ee181a1a88cb79fb3a300c2b3d52c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jun 29 18:28:17 2016 +0200

    wayland: Export function to tell whether a button belongs to a pad group

 src/wayland/meta-wayland-tablet-pad-group.c |    8 ++++----
 src/wayland/meta-wayland-tablet-pad-group.h |    2 ++
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/wayland/meta-wayland-tablet-pad-group.c b/src/wayland/meta-wayland-tablet-pad-group.c
index 61b36c7..f97c447 100644
--- a/src/wayland/meta-wayland-tablet-pad-group.c
+++ b/src/wayland/meta-wayland-tablet-pad-group.c
@@ -164,9 +164,9 @@ tablet_pad_group_get_n_modes (MetaWaylandTabletPadGroup *group)
   return n_modes;
 }
 
-static gboolean
-tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
-                             guint                      button)
+gboolean
+meta_wayland_tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group,
+                                          guint                      button)
 {
   MetaBackend *backend = meta_get_backend ();
 
@@ -206,7 +206,7 @@ meta_wayland_tablet_pad_group_notify (MetaWaylandTabletPadGroup *group,
     {
       uint32_t *pos;
 
-      if (!tablet_pad_group_has_button (group, i))
+      if (!meta_wayland_tablet_pad_group_has_button (group, i))
         continue;
 
       pos = wl_array_add (&buttons, sizeof (*pos));
diff --git a/src/wayland/meta-wayland-tablet-pad-group.h b/src/wayland/meta-wayland-tablet-pad-group.h
index 3164eae..8452134 100644
--- a/src/wayland/meta-wayland-tablet-pad-group.h
+++ b/src/wayland/meta-wayland-tablet-pad-group.h
@@ -66,6 +66,8 @@ gboolean     meta_wayland_tablet_pad_group_handle_event        (MetaWaylandTable
 
 void         meta_wayland_tablet_pad_group_sync_focus          (MetaWaylandTabletPadGroup *group);
 
+gboolean     meta_wayland_tablet_pad_group_has_button            (MetaWaylandTabletPadGroup *group,
+                                                                  guint                      button);
 gboolean     meta_wayland_tablet_pad_group_is_mode_switch_button (MetaWaylandTabletPadGroup *group,
                                                                   guint                      button);
 


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