I have a button that is displayed with an image.
I would like to show some text when the mouse is hovering on top of it (like any desktop icon would do, or even images on HTML pages).
I am not sure if there is any facility to do that, I could not find any by looking at the GtkButton class.
Does anyone please know how I can set some text labels when the mouse is hovering on top of a button please?
Thank you very much!
You are probably looking for
GtkTooltip. There are simple APIs as part ofGtkWidgetto set & get tool tip. Usegtk_widget_set_tooltip_textto add simple text as tips for the widget orgtk_widget_set_tooltip_markupfor adding text with Pango markup language. Here is a sample code for your reference:Hope this helps!