[grapefruit] Can't fit tooltips into grapefruit "box" model
Roman Cheplyaka
roma at ro-che.info
Tue May 12 10:16:13 EDT 2009
* 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.)
> To make it possible
> to have no tooltip at all, we could change this to
>
> MaybeTooltip ::: SString `Of` Maybe String
>
> By the way, I don’t see much point in GTK+ introducing the concept of tooltip
> groups.
Neither do I, but that's what we have...
> As far as I can see, this helps only in disabling a bunch of
> tooltips. But why should one want to do this? So it might be okay, to just
> work with one global tooltip group or one group per tooltip. The last one is
> probably easier to implement since it frees us from dealing with global
> variables or passing a tooltip group around.
>
> Best wishes,
> Wolfgang
--
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