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

List:       moblin-dev
Subject:    Re: [Moblin Dev] tooltip text
From:       "Yang, Lei A" <lei.a.yang () intel ! com>
Date:       2009-11-24 6:04:18
Message-ID: 9F0C1DB20AFA954FA1DA05309350433D8C09E93E () pdsmsx503 ! ccr ! corp ! intel ! com
[Download RAW message or body]

Eric,

As I know, the tooltip shown is handled by mutter-moblin/src/mnb-toolbar-button.c
The codes implemented a toolbar button class to handle the operations on toolbar \
button, e.g. show tooltips.

Firstly, when mouse cursor enter into the button area, there is an enter_event \
triggered and invoke the mnb_toolbar_button_enter Then, the button will check if the \
button is "checked". If no, the enter_event will be dispatched to parent class and \
invoke the handler of parent class (->NBTK button) And then, in NBTK button class, \
enter_event handler set the button to "hover" status, dispatch to parent class (-> \
NBTK bin -> NBTK widget) Finally, in NBTK widget, the handler enter_event will call \
function nbtk_widget_show_tooltips. This function will find the button tooltip (here \
is "myzone") and show it.

You'd better to read NBTK codes like NBTK button, NBTK widget and NBTK tooltip.

Hope it is helpful :)

Thanks,
Lei Y


From: Eric [mailto:wdnyzeric@gmail.com]
Sent: Tuesday, November 24, 2009 12:01 PM
To: Yang, Lei A
Cc: moblin
Subject: Re: [Moblin Dev] tooltip text

 Thanks for your response.
  What I want to know is how the text shown on border-image.
  Thanks.
2009/11/24 Yang, Lei A <lei.a.yang@intel.com<mailto:lei.a.yang@intel.com>>
The tooltips are written in code mutter-moblin:

Myzone string definition is in \
mutter-moblin/libmoblin-panel/Moblin-panel/mpl-panel-common.h #define \
MPL_PANEL_MYZONE "myzone"

And the tooltips shows in code mutter-moblin/src/mnb-toolbar.c.

Thanks,
Lei Y

-----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: Tuesday, November 24, 2009 11:42 AM
To: moblin
Subject: [Moblin Dev] tooltip text

Hi,
  When I read the code of moblin-panel-myzone.c,
  I can not find how the tooltip text "myzone" shown on
border-image"file://generic/tooltipbackground.png".

  Can anybody tell me ?

 Thanks.
_______________________________________________
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


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

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