Thanks for your help.

furthermore ,

in the css files,we set properties of classes and objects,
for example as follows:

MnbSwitcher *#workspace-title-new-disabled {
  border-image: url("file://switcher/workspace-title-new-disabled.png") 4;
  padding: 4;
  color: white;
}


The question is how to find all properties of some classes or objects we 
can set in css files






"Bu, Long" <[email protected]> 
2010-01-12 18:31

收件人
"[email protected]" <[email protected]>, "[email protected]" 
<[email protected]>
抄送
"[email protected]" <[email protected]>
主题
RE: [Moblin Dev] about css in clutter






They are standard CSS meaning.
* is wildcast matching any element. 
# defines a ID selector.
For '>', A > B defines a pattern that matchs any B element that is a child 
of A

> MnbSwitcher *#workspace-title-new-disabled
This will match any actor with id "workspace-title-new-disabled" which has 
a ascent of MnbSwitcher type.
You can set the id by using clutter_actor_set_name

>MnbSwitcher *.workspace-title-new-symbol
This will match any actor with style class "workspace-title-new-symbol " 
which has a ascent of MnbSwitcher type.
You can set the class by using mx_stylable_set_style_class

>MnbSwitcherZone.switcher-workspace 
This will match any MnbSwitcherZone object with the style class as " 
switcher-workspace"

>MnbToolbarButton#status-button 
This will match any MnbToolbarButton object with the id as "status-button"

>MnbToolbarButton#status-button:hover,
>MnbToolbarButton#status-button:active,
>MnbToolbarButton#status-button:checked {
This will match if either of the following conditions is true:
1. mouse is hovering on a MnbToolbarButton object with a id 
"status-button"2
2. a MnbToolbarButton object with a id "status-button" is pressed.
3. a MnbToolbarButton object with a id "status-button" is checked.

>NbtkScrollBar {
This matches any NbtkScrollBar objects.

>NbtkScrollBar > *#backward-stepper {
This matches any objects with an ID "backward-stepper" and has a parent of 
NbtkScrollBar type.


Hope this can help you understand.

Cheers.
Long
>-----Original Message-----
>From: [email protected] [mailto:[email protected]] On Behalf Of
>[email protected]
>Sent: 2010年1月12日 13:40
>To: [email protected]
>Cc: [email protected]
>Subject: [Moblin Dev] about css in clutter
>
>Hi,All:
>
>I checked the css file of 'mutter-moblin' ,and want to know more about 
the
>usage of css in nbtk.
>
>What's the meaning of the css blocks(* # . >) as follows :
>
>(1)
>MnbSwitcher *#workspace-title-new-disabled {
>  border-image: url("file://switcher/workspace-title-new-disabled.png") 
4;
>  padding: 4;
>  color: white;
>}
>(2)
>MnbSwitcher *.workspace-title-new-symbol {
>}
>(3)
>MnbSwitcherZone.switcher-workspace {
>  border-image: url("file://switcher/workspace-background.png") 4;
>  padding: 5;
>}
>(4)
>/* status button */
>MnbToolbarButton#status-button {
>  background-image: url("file://panel/status-normal.png");
>}
>(5)
>MnbToolbarButton#status-button:hover,
>MnbToolbarButton#status-button:active,
>MnbToolbarButton#status-button:checked {
>  background-image: url("file://panel/status-coloured.png");
>}
>
>(6)
>NbtkScrollBar {
>  background-color: #e7ebee;
>  padding: 3;
>}
>(7)
>NbtkScrollBar > *#backward-stepper {
>  border-image: url("file://generic/vscroll-backward.png") 2 4 2 2 
stretch
>stretch;
>}
>
>Thanks very much for your time on this email!
>
>
>
>--------------------------------------------------------
>ZTE Information Security Notice: The information contained in this mail 
is
>solely property of the sender's organization. This mail communication is
>confidential. Recipients named above are obligated to maintain secrecy 
and are
>not permitted to disclose the contents of this communication to others.
>This email and any files transmitted with it are confidential and 
intended solely
>for the use of the individual or entity to whom they are addressed. If 
you have
>received this email in error please notify the originator of the message. 
Any
>views expressed in this message are those of the individual sender.
>This message has been scanned for viruses and Spam by ZTE Anti-Spam 
system.
>_______________________________________________
>Moblin dev Mailing List
>[email protected]
>
>To manage or unsubscribe from this mailing list visit:
>http://lists.moblin.org/listinfo/dev or your user account on 
http://moblin.org
>once logged in.
>
>For more information on the Moblin Developer Mailing lists visit:
>http://moblin.org/community/mailing-lists




--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is 
solely property of the sender's organization. This mail communication is 
confidential. Recipients named above are obligated to maintain secrecy and are 
not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the originator of the 
message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.
_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org 
once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to