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:[email protected]]
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 <[email protected]<mailto:[email protected]>>
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: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] 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
[email protected]<mailto:[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

_______________________________________________
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