[clutter/wip/wayland: 37/45] evdev: Make sure to save priv->stage_added_handler
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/wayland: 37/45] evdev: Make sure to save priv->stage_added_handler
- Date: Wed, 22 Feb 2012 18:02:49 +0000 (UTC)
commit 6a2f838891474bcb607bd18af41c57fd77b9c365
Author: Robert Bragg <robert linux intel com>
Date: Thu Jan 19 19:40:27 2012 +0000
evdev: Make sure to save priv->stage_added_handler
When we connected the stage added handler in the evdev backend we forget
to save the id for the handler so we got an error when we tried to
disconnect it later with an id of 0.
clutter/evdev/clutter-device-manager-evdev.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/clutter/evdev/clutter-device-manager-evdev.c b/clutter/evdev/clutter-device-manager-evdev.c
index a04104d..5074e54 100644
--- a/clutter/evdev/clutter-device-manager-evdev.c
+++ b/clutter/evdev/clutter-device-manager-evdev.c
@@ -951,10 +951,11 @@ clutter_device_manager_evdev_init (ClutterDeviceManagerEvdev *self)
(which is probably the most frequent use-case for the evdev
backend) we'll associate any input devices that don't have a
stage with the first stage created. */
- g_signal_connect (priv->stage_manager,
- "stage-added",
- G_CALLBACK (clutter_device_manager_evdev_stage_added_cb),
- self);
+ priv->stage_added_handler =
+ g_signal_connect (priv->stage_manager,
+ "stage-added",
+ G_CALLBACK (clutter_device_manager_evdev_stage_added_cb),
+ self);
g_signal_connect (priv->stage_manager,
"stage-removed",
G_CALLBACK (clutter_device_manager_evdev_stage_removed_cb),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]