summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Xianwei <[email protected]>2018-11-06 11:34:17 +0800
committerraveit65 <[email protected]>2018-11-10 17:28:49 +0100
commit4971d1914fd91c2403b4d7405969899200a4ccaa (patch)
tree665fd3aa17441904359a5069c947540c53be7ce0
parent21469f246d6edb129618dcf8b521267f5bcc45d5 (diff)
downloadmate-settings-daemon-4971d1914fd91c2403b4d7405969899200a4ccaa.tar.bz2
mate-settings-daemon-4971d1914fd91c2403b4d7405969899200a4ccaa.tar.xz
media-keys: Remove test for screen brightness OSD icons
Screen brightness OSD has been moved from m-s-d to m-p-m, see: https://github.com/mate-desktop/mate-power-manager/commit/4fd2ae34e50e63ef562356f804dbdea81341f4e2 So remove test for brightness OSD icons in m-s-d. Signed-off-by: Zhang Xianwei <[email protected]>
-rw-r--r--plugins/media-keys/test-media-window.c34
1 files changed, 2 insertions, 32 deletions
diff --git a/plugins/media-keys/test-media-window.c b/plugins/media-keys/test-media-window.c
index 953d347..3ae75de 100644
--- a/plugins/media-keys/test-media-window.c
+++ b/plugins/media-keys/test-media-window.c
@@ -68,41 +68,14 @@ update_state (GtkWidget *window)
gtk_widget_show (window);
break;
- case 5:
- msd_media_keys_window_set_volume_level (MSD_MEDIA_KEYS_WINDOW (window),
- 0);
- msd_media_keys_window_set_action_custom (MSD_MEDIA_KEYS_WINDOW (window),
- "gpm-brightness-lcd",
- TRUE);
-
- gtk_widget_show (window);
- break;
- case 6:
- msd_media_keys_window_set_volume_level (MSD_MEDIA_KEYS_WINDOW (window),
- 50);
- msd_media_keys_window_set_action_custom (MSD_MEDIA_KEYS_WINDOW (window),
- "gpm-brightness-lcd",
- TRUE);
-
- gtk_widget_show (window);
- break;
- case 7:
- msd_media_keys_window_set_volume_level (MSD_MEDIA_KEYS_WINDOW (window),
- 100);
- msd_media_keys_window_set_action_custom (MSD_MEDIA_KEYS_WINDOW (window),
- "gpm-brightness-lcd",
- TRUE);
-
- gtk_widget_show (window);
- break;
- case 8:
+ case 5:
msd_media_keys_window_set_action_custom (MSD_MEDIA_KEYS_WINDOW (window),
"touchpad-disabled",
FALSE);
gtk_widget_show (window);
break;
- case 9:
+ case 6:
msd_media_keys_window_set_action_custom (MSD_MEDIA_KEYS_WINDOW (window),
"input-touchpad",
FALSE);
@@ -155,9 +128,6 @@ main (int argc,
exit (1);
}
- gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
- DATADIR G_DIR_SEPARATOR_S "mate-power-manager" G_DIR_SEPARATOR_S "icons");
-
test_window ();
gtk_main ();