[gnome-settings-daemon] orientation: Add missing profiles "end" calls
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] orientation: Add missing profiles "end" calls
- Date: Tue, 7 Jun 2011 17:19:55 +0000 (UTC)
commit 718483093064deb538f2d09492be035c9ffafd29
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jun 7 18:08:46 2011 +0100
orientation: Add missing profiles "end" calls
plugins/orientation/gsd-orientation-manager.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/orientation/gsd-orientation-manager.c b/plugins/orientation/gsd-orientation-manager.c
index aa5de08..93f2214 100644
--- a/plugins/orientation/gsd-orientation-manager.c
+++ b/plugins/orientation/gsd-orientation-manager.c
@@ -425,6 +425,7 @@ gsd_orientation_manager_idle_cb (GsdOrientationManager *manager)
dev = get_accelerometer (manager->priv->client);
if (dev == NULL) {
g_debug ("Did not find an accelerometer");
+ gnome_settings_profile_end (NULL);
return FALSE;
}
manager->priv->sysfs_path = g_strdup (g_udev_device_get_sysfs_path (dev));
@@ -442,6 +443,8 @@ gsd_orientation_manager_idle_cb (GsdOrientationManager *manager)
g_signal_connect (G_OBJECT (manager->priv->client), "uevent",
G_CALLBACK (client_uevent_cb), manager);
+ gnome_settings_profile_end (NULL);
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]