"Emmanuele Bassi" <eba...@gmail.com> wrote:
> On 2 March 2014 16:07, Thomas Funk <t.f...@web.de> wrote:
> 
> > I'm developing a module to simplify Gtk2 widgets for rapid GUI
> > development in my project (Fvwm-Nightshade).
> >
> > Now to my problem. Some of the widgets have a tooltip function but not
> > all. For those I use Gtk2::tooltips but run into the problem, that the
> > tooltip won't show or only at the borders of a widget.
> 
> don't. GtkTooltips has long since been deprecated, and should never be
> used in newly written code:
> 
>     https://developer.gnome.org/gtk2/stable/GtkTooltips.html
> 
> you should simply set the tooltip through the
> Gtk2::Widget::set_tooltip_text() method (or set_tooltip_markup()
> method, if you want to use Pango markup in the tooltips).

I tried this already but it has the same behaviour - tooltip is shown
around the corners of a widget only :-(

> the page for the tooltip API is here:
> 
>     https://developer.gnome.org/gtk2/stable/GtkTooltip.html
> 
> it allows you to create custom tooltips, with complex contents (like
> images) and to listen to specific coordinates (for instance, if you
> have a custom canvas). unlike the old GtkTooltips API, the tooltip API
> allows you to set tooltips on complex widgets like Gtk2::TreeView.

There exists in the Perl-Gtk2 reference Gtk2::Tooltip
(http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Tooltip.html)
and a method $tooltip->set_tip_area ($rect) but how can I use this?
There is no method in Gtk2::Widget or elsewhere to get the object to
call this method. Also it doesn't exist directly anywhere.

Could you provide a perl snippet so that I understand what I have to do?

Thanks,
Thomas


--
"Two things are infinite: the universe and human stupidity; and I'm not sure 
about the the universe."   --   Albert Einstein
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to