Add support for toggle switches in menus

Adds class PopupSwitchMenuItem, which is a two-state switch similar
to those in system status indicators mockups. Also adds class Switch,
which represents the switch itself, in case it is useful somewhere
else.

https://bugzilla.gnome.org/show_bug.cgi?id=621880
This commit is contained in:
Giovanni Campagna 2010-06-17 14:17:01 +02:00 committed by Dan Winship
parent 7bde88a6e2
commit 4dfc869e9d
3 changed files with 97 additions and 0 deletions

View file

@ -10,6 +10,7 @@ js/ui/lookingGlass.js
js/ui/overview.js
js/ui/panel.js
js/ui/placeDisplay.js
js/ui/popupMenu.js
js/ui/runDialog.js
js/ui/statusMenu.js
js/ui/windowAttentionHandler.js