[Gpe-list] Case-insensitive category names
Graham Cobb
g+gpe at cobb.uk.net
Thu Sep 6 18:33:37 CEST 2007
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)
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.
Does anyone have any comment on these changes? I am not planning to change
the categories UI.
Graham
More information about the Gpe-list
mailing list