diff options
author | Zhang Xianwei <[email protected]> | 2018-11-06 11:34:51 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-11-10 17:28:49 +0100 |
commit | ea4ab83ceee857effdf90f79f00ec9335a5181a5 (patch) | |
tree | 878ebb4a33ba6d1ac8c3186485f569a60eb5a393 /plugins/media-keys/msd-media-keys-manager.c | |
parent | 4971d1914fd91c2403b4d7405969899200a4ccaa (diff) | |
download | mate-settings-daemon-ea4ab83ceee857effdf90f79f00ec9335a5181a5.tar.bz2 mate-settings-daemon-ea4ab83ceee857effdf90f79f00ec9335a5181a5.tar.xz |
media-keys: Remove unuseful show_level argument in msd_media_keys_window_set_action_custom
Since brightness OSD has been moved to m-p-m, there is no any situation
to use show_level in msd_media_keys_window_set_action_custom, should
remove this argument.
Signed-off-by: Zhang Xianwei <[email protected]>
Diffstat (limited to 'plugins/media-keys/msd-media-keys-manager.c')
-rw-r--r-- | plugins/media-keys/msd-media-keys-manager.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c index 316cf4d..c267166 100644 --- a/plugins/media-keys/msd-media-keys-manager.c +++ b/plugins/media-keys/msd-media-keys-manager.c @@ -581,8 +581,7 @@ do_eject_action (MsdMediaKeysManager *manager) /* Show the dialogue */ dialog_init (manager); msd_media_keys_window_set_action_custom (MSD_MEDIA_KEYS_WINDOW (manager->priv->dialog), - "media-eject", - FALSE); + "media-eject"); dialog_show (manager); /* Clean up the drive selection and exit if no suitable @@ -607,8 +606,7 @@ do_touchpad_osd_action (MsdMediaKeysManager *manager, gboolean state) { dialog_init (manager); msd_media_keys_window_set_action_custom (MSD_MEDIA_KEYS_WINDOW (manager->priv->dialog), - state ? "input-touchpad" : "touchpad-disabled", - FALSE); + state ? "input-touchpad" : "touchpad-disabled"); dialog_show (manager); } @@ -849,13 +847,11 @@ set_rfkill_complete (GObject *object, if (data->bluetooth) msd_media_keys_window_set_action_custom (MSD_MEDIA_KEYS_WINDOW (data->manager->priv->dialog), data->target_state ? "bluetooth-disabled-symbolic" - : "bluetooth-active-symbolic", - FALSE); + : "bluetooth-active-symbolic"); else msd_media_keys_window_set_action_custom (MSD_MEDIA_KEYS_WINDOW (data->manager->priv->dialog), data->target_state ? "airplane-mode-symbolic" - : "network-wireless-signal-excellent-symbolic", - FALSE); + : "network-wireless-signal-excellent-symbolic"); dialog_show (data->manager); out: g_free (data->property); @@ -884,8 +880,7 @@ do_rfkill_action (MsdMediaKeysManager *manager, if (get_rfkill_property (manager, hw_mode)) { msd_media_keys_window_set_action_custom (MSD_MEDIA_KEYS_WINDOW (manager->priv->dialog), - "airplane-mode-symbolic", - FALSE); + "airplane-mode-symbolic"); dialog_show (manager); return; } |