Re: Tooltip hints on tabs



set_tooltip_text() is 2.12 API, you're most likely using a Gtk+ 2.10 based gtkmm, so you have to use the GtkTooltips API instead, and add a GtkTooltips (yes with 's') to the HBox yourself, check here for reference:

http://developer.gnome.org/doc/API/2.0/gtk/GtkTooltips.html
http://gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Tooltips.html

HTH

On 7/23/07, Grizzly(Francis Smit) < grizzly smit id au> wrote:
Grizzly(Francis Smit) wrote:
> Peter Cruickshank wrote:
>
>> Hey, I think somebody asked this last year. Check out the following reply:
>>
>> http://mail.gnome.org/archives/gtkmm-list/2006-October/msg00184.html
>>
>> Hopefully that helps.
>>
>> Cheers,
>>
>> Peter
>>
>> On 7/22/07, Grizzly(Francis Smit) <grizzly smit id au > wrote:
>>
>>
>>> Hi List
>>> I have a problem again how do I put tooltip hints on the tabs of a
>>> Gtk::Notebook  I've tried to put it on the widgets I have in the tab
>>> (I have a hbox with a label and a button in it ) but they don't support
>>> the method set_tooltip_text(const Glib::ustring& text) well I suppose
>>> the button might but it's tiny (just a cross to close the tab) anyway
>>> does any one know how to do this.
>>>
>>>
> Unfortunately this still gives me the same error the compiler says
> that Gtk::EventBox has no method set_tooltip_text even though
> the docs say it does, is it perhaps a protected method, do I need to
> derive a class from it to expose this method
>
>
ok I cannot get at this I've tried deriving a sub class of

Gtk::EventBox  but still I get the error that set_tooltip_text is
not a member of Gtk::EventBox so I don't know what to do :(
source code that does this would be most welcome now.



--
  In my life God comes first.... but Linux is pretty high after that :-D
Grizzly(Francis Smit)
http://www.geekcode.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GM/CS/P/PA d- s+:+> a+>? C++++ UL++++@ P+ L+++ E--- W+++ N+(++) K w--- M-- V-- PS(+) PE(-) Y+(++) PGP++ t+(++) 5 X- R- tv b+++(++++) DI(--) D G e++(+++) h-- r- y-
------END GEEK CODE BLOCK------

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]