[mutter/wip/wayland-work: 22/22] wayland: remove some wl_signal usage



commit 90b0213c2f89d13504bfbfc7c09a7cc9d18d05af
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Wed Sep 11 14:35:41 2013 +0200

    wayland: remove some wl_signal usage
    
    It was a left-over from the initial code import from weston.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707863

 src/wayland/meta-wayland-data-device.c |    4 ----
 src/wayland/meta-wayland-keyboard.c    |    2 --
 src/wayland/meta-wayland-keyboard.h    |    1 -
 src/wayland/meta-wayland-pointer.c     |    1 -
 src/wayland/meta-wayland-pointer.h     |    1 -
 src/wayland/meta-wayland-seat.c        |    5 -----
 src/wayland/meta-wayland-seat.h        |    2 --
 7 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/src/wayland/meta-wayland-data-device.c b/src/wayland/meta-wayland-data-device.c
index b9bb21c..352448a 100644
--- a/src/wayland/meta-wayland-data-device.c
+++ b/src/wayland/meta-wayland-data-device.c
@@ -373,8 +373,6 @@ destroy_selection_data_source (struct wl_listener *listener, void *data)
       if (data_device)
         wl_data_device_send_selection (data_device, NULL);
     }
-
-  wl_signal_emit (&seat->selection_signal, seat);
 }
 
 void
@@ -419,8 +417,6 @@ meta_wayland_seat_set_selection (MetaWaylandSeat *seat,
         }
     }
 
-  wl_signal_emit (&seat->selection_signal, seat);
-
   if (source)
     {
       seat->selection_data_source_listener.notify =
diff --git a/src/wayland/meta-wayland-keyboard.c b/src/wayland/meta-wayland-keyboard.c
index 4e6a141..470e864 100644
--- a/src/wayland/meta-wayland-keyboard.c
+++ b/src/wayland/meta-wayland-keyboard.c
@@ -343,7 +343,6 @@ meta_wayland_keyboard_init (MetaWaylandKeyboard *keyboard,
   keyboard->default_grab.interface = &default_keyboard_grab_interface;
   keyboard->default_grab.keyboard = keyboard;
   keyboard->grab = &keyboard->default_grab;
-  wl_signal_init (&keyboard->focus_signal);
 
   keyboard->display = display;
 
@@ -642,7 +641,6 @@ meta_wayland_keyboard_set_focus (MetaWaylandKeyboard *keyboard,
 
   keyboard->focus_resource = resource;
   keyboard->focus = surface;
-  wl_signal_emit (&keyboard->focus_signal, keyboard);
 }
 
 void
diff --git a/src/wayland/meta-wayland-keyboard.h b/src/wayland/meta-wayland-keyboard.h
index e0bd67e..4354faf 100644
--- a/src/wayland/meta-wayland-keyboard.h
+++ b/src/wayland/meta-wayland-keyboard.h
@@ -96,7 +96,6 @@ struct _MetaWaylandKeyboard
   struct wl_resource *focus_resource;
   struct wl_listener focus_listener;
   uint32_t focus_serial;
-  struct wl_signal focus_signal;
 
   MetaWaylandKeyboardGrab *grab;
   MetaWaylandKeyboardGrab default_grab;
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c
index 7a4784a..55c0638 100644
--- a/src/wayland/meta-wayland-pointer.c
+++ b/src/wayland/meta-wayland-pointer.c
@@ -281,7 +281,6 @@ meta_wayland_pointer_init (MetaWaylandPointer *pointer,
   pointer->default_grab.interface = &default_pointer_grab_interface;
   pointer->default_grab.pointer = pointer;
   pointer->grab = &pointer->default_grab;
-  wl_signal_init (&pointer->focus_signal);
 
   manager = clutter_device_manager_get_default ();
   device = clutter_device_manager_get_core_device (manager, CLUTTER_POINTER_DEVICE);
diff --git a/src/wayland/meta-wayland-pointer.h b/src/wayland/meta-wayland-pointer.h
index d355d29..53e59f3 100644
--- a/src/wayland/meta-wayland-pointer.h
+++ b/src/wayland/meta-wayland-pointer.h
@@ -51,7 +51,6 @@ struct _MetaWaylandPointer
   struct wl_listener focus_listener;
   guint32 focus_serial;
   guint32 click_serial;
-  struct wl_signal focus_signal;
 
   MetaWaylandPointerGrab *grab;
   MetaWaylandPointerGrab default_grab;
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c
index e4678d5..17544b3 100644
--- a/src/wayland/meta-wayland-seat.c
+++ b/src/wayland/meta-wayland-seat.c
@@ -230,11 +230,8 @@ meta_wayland_seat_new (struct wl_display *display,
 {
   MetaWaylandSeat *seat = g_new0 (MetaWaylandSeat, 1);
 
-  wl_signal_init (&seat->destroy_signal);
-
   seat->selection_data_source = NULL;
   wl_list_init (&seat->base_resource_list);
-  wl_signal_init (&seat->selection_signal);
   wl_list_init (&seat->data_device_resource_list);
 
   meta_wayland_pointer_init (&seat->pointer, is_native);
@@ -492,7 +489,5 @@ meta_wayland_seat_free (MetaWaylandSeat *seat)
   meta_wayland_pointer_release (&seat->pointer);
   meta_wayland_keyboard_release (&seat->keyboard);
 
-  wl_signal_emit (&seat->destroy_signal, seat);
-
   g_slice_free (MetaWaylandSeat, seat);
 }
diff --git a/src/wayland/meta-wayland-seat.h b/src/wayland/meta-wayland-seat.h
index 3c968ef..c5c88e2 100644
--- a/src/wayland/meta-wayland-seat.h
+++ b/src/wayland/meta-wayland-seat.h
@@ -54,12 +54,10 @@ struct _MetaWaylandDataSource
 struct _MetaWaylandSeat
 {
   struct wl_list base_resource_list;
-  struct wl_signal destroy_signal;
 
   uint32_t selection_serial;
   MetaWaylandDataSource *selection_data_source;
   struct wl_listener selection_data_source_listener;
-  struct wl_signal selection_signal;
 
   struct wl_list data_device_resource_list;
   MetaWaylandPointer pointer;


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