The simplest way is to create a new style file which only include myzone 
specific tooltip definition, sth like
NbtkTooltip {
   Color: white;
   Padding: 4 10 12 10;
   Border-image: url(‘file://yours-favorate.png') 4 11 12 11;
   Font-size: 15px;
}

In source code, add nbtk_style_load_from_file(nbtk_style_get_default(), 
"yourcssfile", NULL) before clutter_stage_get_default()


-----Original Message-----
From: dev-boun...@moblin.org [mailto:dev-boun...@moblin.org] On Behalf Of 
Zheng, Yanshuang
Sent: 2009年10月28日 13:17
To: Eric
Cc: moblin
Subject: Re: [Moblin Dev] modify tooltip

I guess you meant to modify the background and words of myzone tooltip. The 
words can be modified as Jing said.
But for its background, Moblin loads default styles for tooltips which have not 
been specified style names. So when you change the background in theme, 
backgrounds of all tooltips are changed.
I am not sure whether tooltip can be treated as an actor or widget and accept 
customized styles names. If yes, you can create a new style for tooltip in .css 
file, and then set it to myzone tooltip.

Thanks,
Yanshuang

________________________________
From: Eric [mailto:wdnyze...@gmail.com]
Sent: 2009年10月28日 11:51
To: Zheng, Yanshuang
Cc: moblin
Subject: Re: [Moblin Dev] modify tooltip

thanks,
Maybe what I said not clearly.
I do not want to change "border of widgets in myzone", I just want to modify 
the tooltip of myzone button . There if I move cursor on button in toolbar, the 
tooltip will be shown.
2009/10/28 Zheng, Yanshuang 
<yanshuang.zh...@intel.com<mailto:yanshuang.zh...@intel.com>>
To change the background or border of widgets in myzone, you can edit 
moblin-panel-myzone/data/theme/panel.css to refer your customized images.
To change the whole background of myzone, please edit file data/theme 
/mutter-moblin.css in mutter-moblin. Currently pictures about panels are kept 
in mutter-moblin/data/theme/panel.

Thanks,
Yanshuang

>-----Original Message-----
>From: dev-boun...@moblin.org<mailto:dev-boun...@moblin.org> 
>[mailto:dev-boun...@moblin.org<mailto:dev-boun...@moblin.org>] On Behalf Of 
>Eric
>Sent: 2009年10月28日 9:55
>To: Wang, Jing J
>Cc: moblin
>Subject: Re: [Moblin Dev] modify tooltip
>
>Thanks
> But in moblin-panel-myzone.c, there  only can modify the words of tooltip,
>I want to change the border-image and background-image of Myzone.
>
>
>2009/10/27 Wang, Jing J <jing.j.w...@intel.com<mailto:jing.j.w...@intel.com>>
>
>> In moblin-panel-myzone.c,
>>    client = mpl_panel_clutter_new (MPL_PANEL_MYZONE,
>>                                    "myzone",
>>                                    NULL,
>>                                    "myzone-button",
>>                                    TRUE);
>> The 2nd parameter is tooltip.
>>
>> -----Original Message-----
>> From: dev-boun...@moblin.org<mailto:dev-boun...@moblin.org> 
>> [mailto:dev-boun...@moblin.org<mailto:dev-boun...@moblin.org>] On Behalf Of
>> Eric
>> Sent: 2009年10月26日 17:41
>> To: Kok, Auke-jan H
>> Cc: moblin
>> Subject: Re: [Moblin Dev] modify tooltip
>>
>>  Thanks for your response
>>  I can not found where to modify tooltip of Myzone.I want to change the
>> tooltip of Myzone to a picture.
>>  If I modify mutter-moblin.css in /usr/share/mutter-moblin/theme, the
>> tooltip of all buttons are changed.I only want to change Myzone's tooltip.
>>
>>
>> 2009/10/21 Kok, Auke 
>> <auke-jan.h....@intel.com<mailto:auke-jan.h....@intel.com>>
>>
>> > Eric wrote:
>> > > Hi,
>> > >  I want to modify the tooptip of Myzone,
>> > >  Only Myzone ,the other buttons remain unchanged.
>> >
>> > check http://git.moblin.org/ for source code.
>> >
>> > Cheers,
>> >
>> > Auke
>> >
>> _______________________________________________
>> Moblin dev Mailing List
>> dev@moblin.org<mailto:dev@moblin.org>
>>
>> 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
>>
>_______________________________________________
>Moblin dev Mailing List
>dev@moblin.org<mailto:dev@moblin.org>
>
>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

_______________________________________________
Moblin dev Mailing List
dev@moblin.org

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
_______________________________________________
Moblin dev Mailing List
dev@moblin.org

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