[oss-devel] Added "tooltip" and help text support to the mixer API
Hannu Savolainen
hannu at opensound.com
Fri Mar 21 23:27:02 EET 2008
Yair K. kirjoitti:
> On Friday 21 March 2008 17:23:13 Hannu Savolainen wrote:
>
>> Hannu Savolainen wrote:
>> I added a new ioctl call
>> (http://manuals.opensound.com/developer/SNDCTL_MIX_DESCRIPTION.html) to
>> the hg version. There is also a new MIXF_DESCR flag that tells if a
>> mixer control has descriptive text available.
>>
>>
>
>
>> I also modified ossxmix to show the texts but it looks like it doesn't
>> work yet (at least not under GTK+ versions before 2.12).
>>
>
> I tested with a fake description ("strcpy(ei.strings,"... ). GTK 2.12+ is
> usually fine. It works only on some widgets in GTK < 2.12, maybe because of
> this restriction (from GtkTooltips.html):
> "Tooltips can only be set on widgets which have their own X window and
> receive enter and leave events." (They than prescribe a test which doesn't
> work at all, and a workaround which is too messy to apply).
>
> I suggest the attached diff to simplify check_tooltips a bit.
Ok.
> (I don't
> understand why char *p is needed in check_tooltips() - it doesn't look like
> there's a way to access the "private tooltips", so it's unneccesary).
>
The 'p' pointer is used to separate the first line (tooltip) from the
subsequent lines (help text).
Best regards,
Hannu
More information about the oss-devel
mailing list