[grapefruit] Can't fit tooltips into grapefruit "box" model

Roman Cheplyaka roma at ro-che.info
Thu May 14 11:32:46 EDT 2009


* Wolfgang Jeltsch <g9ks157k at acme.softbase.org> [2009-05-14 11:09:47+0200]
> 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?

Not just call tooltipsSetTip, but create new Tooltips every time, right?
Or where are you going to get tooltips from?

-- 
Roman I. Cheplyaka :: http://ro-che.info/
"Don't let school get in the way of your education." - Mark Twain



More information about the Grapefruit mailing list