[mutter/wip/carlosg/no-device-id: 7/10] clutter/main: Drop usage of clutter_input_device_get_device_id()




commit 045181f321bbf5800be59d10e5039ba2eb6f8b36
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 17 14:55:14 2020 +0100

    clutter/main: Drop usage of clutter_input_device_get_device_id()
    
    Just print the name in those debug logs.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1569>

 clutter/clutter/clutter-main.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c
index c258f676d0..0606d2e4a1 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -1319,9 +1319,9 @@ event_click_count_generate (ClutterEvent *event)
       previous_button_number = device->previous_button_number;
 
       CLUTTER_NOTE (EVENT,
-                    "Restoring previous click count:%d (device:%d, time:%u)",
+                    "Restoring previous click count:%d (device:%s, time:%u)",
                     click_count,
-                    clutter_input_device_get_device_id (device),
+                    clutter_input_device_get_device_name (device),
                     previous_time);
     }
   else
@@ -1375,9 +1375,9 @@ event_click_count_generate (ClutterEvent *event)
 
   if (event->type == CLUTTER_BUTTON_PRESS && device != NULL)
     {
-      CLUTTER_NOTE (EVENT, "Storing click count: %d (device:%d, time:%u)",
+      CLUTTER_NOTE (EVENT, "Storing click count: %d (device:%s, time:%u)",
                     click_count,
-                    clutter_input_device_get_device_id (device),
+                    clutter_input_device_get_device_name (device),
                     previous_time);
 
       device->click_count = click_count;


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