help wanted from Windows and Mac experts...

Mikko Rasa tdb at tdb.fi
Sat Nov 3 13:57:36 PDT 2012


On 01.11.2012 17:53, Lubomir I. Ivanov wrote:
> On 1 November 2012 17:36, Lubomir I. Ivanov<neolit123 at gmail.com>  wrote:
>> devicedata.devname = gtk_entry_get_text(device);
>
> not sure if this is the best solution, but i can write a patch that
> will strip the text in parentheses from the gtk_entry_get_text(device)
> call?

A better solution would be to add a hidden column to the tree model used 
by the dropdown, which contains the value passed to libdivecomputer. 
This would also allow displaying device names on Linux a bit more 
cleanly without the /dev/ prefix, and doing other prettifying operations 
on the displayed strings if desired.

-- 
Mikko


More information about the subsurface mailing list