[grapefruit] Can't fit tooltips into grapefruit "box" model
Wolfgang Jeltsch
g9ks157k at acme.softbase.org
Thu May 14 05:09:47 EDT 2009
Am Dienstag, 12. Mai 2009 16:16 schrieb Roman Cheplyaka:
> * Wolfgang Jeltsch <g9ks157k at acme.softbase.org> [2009-05-12 15:46:46+0200]
>
> > Am Montag, 11. Mai 2009 17:06 schrieb Roman Cheplyaka:
> > > I'm trying to make a label which can show a tooltip (it probably has to
> > > be placed into eventbox, but that's irrelevant here).
> > >
> > > I tried to make a box for this, which will take an inner item, a text
> > > signal and display that item with tooltip.
> >
> > Hello Roman,
> >
> > I would propose to just add an extra input signal
> >
> > Tooltip ::: SSignal `Of` String
> >
> > to every widget, like it is currently done for IsEnabled.
>
> This is exactly what I want to do. Any idea how to do it?
> (Or do you mean to create new Tooltips every time and associate it with
> given widget? It doesn't look good and I'm not sure what implications
> can be.)
I would call Gtk.tooltipsSetTip everytime the above SSignal changes. Do you
see any problems with this approach? Is there an alternative solution at all?
Best wishes,
Wolfgang
More information about the Grapefruit
mailing list