[Spice-devel] [PATCH spice-gtk] usbredir: Give devices a user friendly description

Hans de Goede hdegoede at redhat.com
Tue Jan 3 02:08:49 PST 2012


Hi,

On 12/27/2011 08:07 PM, Marc-André Lureau wrote:
>
>
> On Sat, Dec 24, 2011 at 11:11 AM, Hans de Goede <hdegoede at redhat.com <mailto:hdegoede at redhat.com>> wrote:
>
>     @@ -843,14 +877,40 @@ gchar *spice_usb_device_get_description(SpiceUsbDevice *_device)
>
>
> It would be interesting to give an optionnal format string, such as:
>
> ..get_description(device, _("%2$s (by %1$s)"));
>

Agreed, but that requires writing some non trivial code, and I currently have other priorities. So I suggest
we add this functionality when we need it (we can use a new function name for the function which takes
a format string and make the old one call the new function with a fixed format str.

Regards,

Hans


More information about the Spice-devel mailing list