diff options
author | Tor Lillqvist <tml@novell.com> | 2005-09-28 19:45:01 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-09-28 19:45:01 +0800 |
commit | 00be9c147cee2a3adbc65f3d7eb5190c3629890b (patch) | |
tree | cab33b566d1eeccbec6c3d6454203d94b167bd2b /widgets | |
parent | 31485fd4119368e7c208a1ff86860a7e2370532f (diff) | |
download | gsoc2013-evolution-00be9c147cee2a3adbc65f3d7eb5190c3629890b.tar.gz gsoc2013-evolution-00be9c147cee2a3adbc65f3d7eb5190c3629890b.tar.zst gsoc2013-evolution-00be9c147cee2a3adbc65f3d7eb5190c3629890b.zip |
Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to
2005-09-28 Tor Lillqvist <tml@novell.com>
* e-table-specification.c (e_table_specification_load_from_node):
Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing
to literal ASCII strings, just casefolding ASCII is enough. Also
better for portability.
svn path=/trunk/; revision=30407
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/table/e-table-specification.c | 10 |
2 files changed, 12 insertions, 5 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index 823e8928c8..f005ef5ea1 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,3 +1,10 @@ +2005-09-28 Tor Lillqvist <tml@novell.com> + + * e-table-specification.c (e_table_specification_load_from_node): + Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing + to literal ASCII strings, just casefolding ASCII is enough. Also + better for portability. + 2005-08-24 Li Yuan <li.yuan@sun.com> Fixes #314352. diff --git a/widgets/table/e-table-specification.c b/widgets/table/e-table-specification.c index 6033bda9bd..b5b0710ff2 100644 --- a/widgets/table/e-table-specification.c +++ b/widgets/table/e-table-specification.c @@ -214,20 +214,20 @@ e_table_specification_load_from_node (ETableSpecification *specification, specification->selection_mode = GTK_SELECTION_MULTIPLE; temp = e_xml_get_string_prop_by_name (node, "selection-mode"); - if (temp && !g_strcasecmp (temp, "single")) { + if (temp && !g_ascii_strcasecmp (temp, "single")) { specification->selection_mode = GTK_SELECTION_SINGLE; - } else if (temp && !g_strcasecmp (temp, "browse")) { + } else if (temp && !g_ascii_strcasecmp (temp, "browse")) { specification->selection_mode = GTK_SELECTION_BROWSE; - } else if (temp && !g_strcasecmp (temp, "extended")) { + } else if (temp && !g_ascii_strcasecmp (temp, "extended")) { specification->selection_mode = GTK_SELECTION_EXTENDED; } g_free (temp); specification->cursor_mode = E_CURSOR_SIMPLE; temp = e_xml_get_string_prop_by_name (node, "cursor-mode"); - if (temp && !g_strcasecmp (temp, "line")) { + if (temp && !g_ascii_strcasecmp (temp, "line")) { specification->cursor_mode = E_CURSOR_LINE; - } else if (temp && !g_strcasecmp (temp, "spreadsheet")) { + } else if (temp && !g_ascii_strcasecmp (temp, "spreadsheet")) { specification->cursor_mode = E_CURSOR_SPREADSHEET; } g_free (temp); |