[gtk+/wip/matthiasc/kill-device-manager: 11/26] x11: Stop emitting devicemanager signals



commit 8b0ceb7bb662ee03b435d46e3ee02a0556f4e811
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Nov 24 20:38:47 2017 -0500

    x11: Stop emitting devicemanager signals
    
    Nobody is listening to these anymore, so there
    is no point in emitting them.

 gdk/x11/gdkdevicemanager-xi2.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index 51a89db..beff7be 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -598,8 +598,6 @@ add_device (GdkX11DeviceManagerXI2 *device_manager,
         }
     }
 
-    g_signal_emit_by_name (device_manager, "device-added", device);
-
   return device;
 }
 
@@ -631,8 +629,6 @@ remove_device (GdkX11DeviceManagerXI2 *device_manager,
       detach_from_seat (device);
       device_manager->devices = g_list_remove (device_manager->devices, device);
 
-      g_signal_emit_by_name (device_manager, "device-removed", device);
-
       g_object_run_dispose (G_OBJECT (device));
 
       g_hash_table_remove (device_manager->id_table,
@@ -918,8 +914,6 @@ handle_hierarchy_changed (GdkX11DeviceManagerXI2 *device_manager,
               _gdk_device_remove_slave (master, slave);
               _gdk_device_set_associated_device (slave, NULL);
 
-              g_signal_emit_by_name (device_manager, "device-changed", master);
-
               seat = gdk_device_get_seat (master);
               gdk_seat_default_remove_slave (GDK_SEAT_DEFAULT (seat), slave);
             }
@@ -944,12 +938,8 @@ handle_hierarchy_changed (GdkX11DeviceManagerXI2 *device_manager,
 
                   seat = gdk_device_get_seat (master);
                   gdk_seat_default_add_slave (GDK_SEAT_DEFAULT (seat), slave);
-
-                  g_signal_emit_by_name (device_manager, "device-changed", master);
                 }
             }
-
-          g_signal_emit_by_name (device_manager, "device-changed", slave);
         }
     }
 }


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