[Gpe-list] Case-insensitive category names
Florian Boor
florian.boor at kernelconcepts.de
Fri Sep 7 21:52:36 CEST 2007
Hi,
Graham Cobb wrote:
> I am looking into fixing the bug with syncing categories. I need to translate
> the category names provided from Opensync into the numbers used in GPE. I am
> looking at adding a new function to libgpepimc to lookup categories by name:
>
> gint *gpe_pim_category_id (gchar name)
>
> analogous to the existing: const gchar *gpe_pim_category_name (gint id)
Sounds good to me.
> I am thinking of making the lookup case-independent as I think it will be
> confusing to users to have two categories which differ only in case and I
> think it likely that the case used on a different system may not be exactly
> the same. For example, the way that the Maemo keyboard works category names
> created there will tend to be in "sentence case" (a single initial capital
> letter with lower case for the rest) but categories in Outlook tend to be
> in "title case" (an initial capital for each word of the category name).
>
> I am also thinking of changing gpe_pim_category_new and
> gpe_pim_category_rename to do a lookup first so they can reject attempts to
> create categories which differ only in case.
That's a good idea, I can't imagine a situation where we would need context
sensitive categories.
> Does anyone have any comment on these changes? I am not planning to change
> the categories UI.
Please do it in this way unless someone comes up with a good reason why we
should not do it in this way very soon. :)
Greetings
Florian
--
The dream of yesterday Florian Boor
is the hope of today Tel: +49 271-771091-14
and the reality of tomorrow. Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904] florian.boor at kernelconcepts.de
1D78 2D4D 6C53 1CA4 5588 D07B A8E7 940C 25B7 9A76
More information about the Gpe-list
mailing list