[prev in list] [next in list] [prev in thread] [next in thread] 

List:       moblin-dev
Subject:    Re: [Moblin Dev] modify tooltip
From:       Eric <wdnyzeric () gmail ! com>
Date:       2009-10-29 1:30:37
Message-ID: 450dbe5a0910281830u1c12c5b4pab3b9739d47254c2 () mail ! gmail ! com
[Download RAW message or body]

thanks
 I tried what you said ,but nothing happend.
 I add nbtk_style_load_from_file in moblin-panel-myzone.c, before stage =
clutter_stage_get_default().
 Maybe bug here just like Thomas said.


2009/10/28 Wang, Jing J <jing.j.wang@intel.com>

> 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-bounces@moblin.org [mailto:dev-bounces@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:wdnyzeric@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.zheng@intel.com<mailto:
> yanshuang.zheng@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-bounces@moblin.org<mailto:dev-bounces@moblin.org> [mailto:
> dev-bounces@moblin.org<mailto:dev-bounces@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.wang@intel.com<mailto:
> jing.j.wang@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-bounces@moblin.org<mailto:dev-bounces@moblin.org> [mailto:
> dev-bounces@moblin.org<mailto:dev-bounces@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.kok@intel.com<mailto:
> auke-jan.h.kok@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic