Skip to content
Permalink
Browse files

media-keys: Remove test for screen brightness OSD icons

Screen brightness OSD has been moved from m-s-d to m-p-m, see:
mate-desktop/mate-power-manager@4fd2ae3
So remove test for brightness OSD icons in m-s-d.

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
  • Loading branch information...
zhangxianwei8 authored and raveit65 committed Nov 6, 2018
1 parent 21469f2 commit 4971d1914fd91c2403b4d7405969899200a4ccaa
Showing with 2 additions and 32 deletions.
  1. +2 −32 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 ();

0 comments on commit 4971d19

Please sign in to comment.
You can’t perform that action at this time.