xfce-mcs-manager: patch (collation)
Danny Milosavljevic
danny.milo at gmx.net
Fri Aug 6 09:02:57 CEST 2004
Hi,
Am Donnerstag, den 05.08.2004, 18:48 -0400 schrieb Brian J. Tarricone:
> not sure what the point of this is.... why would you want to compare
> the plugin caption rather than the plugin name? the latter is
> guaranteed to be unique, while the former, SHOULD be, but isn't
> necessarily. using the plugin name kinda obviates the need for
> strcoll(), since it's always going to be in uninternationalised straight
> ascii.
Because then the icons in the mcs settings window are sorted by
caption ;)
The plugin_name is not shown, so sorting the displayed icons by it is
kinda pointless...
Well, if two captions are not unique, they will be just ordered in some
whatever order, its not like they will vanish (plus if there were two
icons in the settings window with the same caption I'd scream terror and
change it :D)
paranoid ones always could use:
int res = strcoll(a.caption, b.caption);
if (res == 0)
res = strcoll(a.plugin_name, b.plugin_name);
return res;
:D
cheers,
Danny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20040806/b01441c7/attachment.pgp>
More information about the Xfce4-dev
mailing list