[gnome-settings-daemon] media-keys: Simplify touchpad OSD
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Simplify touchpad OSD
- Date: Fri, 3 Jun 2011 00:50:45 +0000 (UTC)
commit fe41be4f980dee86a594105398a63cb3e1b4c689
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 3 01:40:00 2011 +0100
media-keys: Simplify touchpad OSD
plugins/media-keys/gsd-media-keys-manager.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index b7e177b..5d931eb 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -600,20 +600,14 @@ do_touchpad_action (GsdMediaKeysManager *manager)
gboolean state;
if (touchpad_is_present () == FALSE) {
- dialog_init (manager);
- gsd_media_keys_window_set_action_custom (GSD_MEDIA_KEYS_WINDOW (manager->priv->dialog),
- "touchpad-disabled", FALSE);
+ do_touchpad_osd_action (manager, FALSE);
return;
}
settings = g_settings_new (SETTINGS_TOUCHPAD_DIR);
state = g_settings_get_boolean (settings, TOUCHPAD_ENABLED_KEY);
- dialog_init (manager);
- gsd_media_keys_window_set_action_custom (GSD_MEDIA_KEYS_WINDOW (manager->priv->dialog),
- (!state) ? "touchpad-enabled" : "touchpad-disabled",
- FALSE);
- dialog_show (manager);
+ do_touchpad_osd_action (manager, !state);
g_settings_set_boolean (settings, TOUCHPAD_ENABLED_KEY, !state);
g_object_unref (settings);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]