popup-menu: Add 'sensitive' flag to item parameters

A menu action may not make sense at any time, so add API to mark
an item insensitive to indicate that its action is currently
unavailable, but may become activatable at a later point.

https://bugzilla.gnome.org/show_bug.cgi?id=659270
This commit is contained in:
Florian Müllner
2011-09-15 16:51:19 +02:00
parent 247ad9d7ab
commit 824220356f
2 changed files with 39 additions and 1 deletions

View File

@@ -164,6 +164,10 @@ StTooltip StLabel {
background-color: #4c4c4c;
}
.popup-menu-item:insensitive {
color: #9f9f9f;
}
.popup-image-menu-item {
}