~ubuntu-branches/ubuntu/jaunty/moon/jaunty

« back to all changes in this revision

Viewing changes to src/xaml.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-03-06 10:09:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090306100949-pgxjxjqltaxi12rz
Tags: 1.0.1-0ubuntu1
New upstream release (LP: #338665)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1748
1748
bool
1749
1749
repeat_behavior_from_str (const char *str, RepeatBehavior *res)
1750
1750
{
1751
 
        if (!g_strcasecmp ("Forever", str)) {
 
1751
        if (!g_ascii_strcasecmp ("Forever", str)) {
1752
1752
                *res = RepeatBehavior::Forever;
1753
1753
                return true;
1754
1754
        }
1792
1792
bool
1793
1793
duration_from_str (const char *str, Duration *res)
1794
1794
{
1795
 
        if (!g_strcasecmp ("Automatic", str)) {
 
1795
        if (!g_ascii_strcasecmp ("Automatic", str)) {
1796
1796
                *res = Duration::Automatic;
1797
1797
                return true;
1798
1798
        }
1799
1799
 
1800
 
        if (!g_strcasecmp ("Forever", str)) {
 
1800
        if (!g_ascii_strcasecmp ("Forever", str)) {
1801
1801
                *res = Duration::Forever;
1802
1802
                return true;
1803
1803
        }
1813
1813
bool
1814
1814
keytime_from_str (const char *str, KeyTime *res)
1815
1815
{
1816
 
        if (!g_strcasecmp ("Uniform", str)) {
 
1816
        if (!g_ascii_strcasecmp ("Uniform", str)) {
1817
1817
                *res = KeyTime::Uniform;
1818
1818
                return true;
1819
1819
        }
1820
1820
 
1821
 
        if (!g_strcasecmp ("Paced", str)) {
 
1821
        if (!g_ascii_strcasecmp ("Paced", str)) {
1822
1822
                *res = KeyTime::Paced;
1823
1823
                return true;
1824
1824
        }
2391
2391
        switch (type) {
2392
2392
        case Type::BOOL: {
2393
2393
                bool b;
2394
 
                if (!g_strcasecmp ("true", str))
 
2394
                if (!g_ascii_strcasecmp ("true", str))
2395
2395
                        b = true;
2396
 
                else if (!g_strcasecmp ("false", str))
 
2396
                else if (!g_ascii_strcasecmp ("false", str))
2397
2397
                        b = false;
2398
2398
                else {
2399
2399
                        // Check if it's a string representing a decimal value