[svn r778] more properties type supported trunk
authorrenatofilho
Tue Jul 03 22:45:24 2007 +0100 (2007-07-03)
branchtrunk
changeset 77247de5c5976bf
parent 771 b4480dd29fc8
child 773 361cb0686ff7
[svn r778] more properties type supported
gmyth-stream/gmemcoder/src/gmencoder.c
     1.1 --- a/gmyth-stream/gmemcoder/src/gmencoder.c	Tue Jul 03 21:45:39 2007 +0100
     1.2 +++ b/gmyth-stream/gmemcoder/src/gmencoder.c	Tue Jul 03 22:45:24 2007 +0100
     1.3 @@ -224,10 +224,24 @@
     1.4      case G_TYPE_INT:
     1.5          g_value_set_int(&p, atoi(prop_val));
     1.6          break;
     1.7 +    case G_TYPE_ULONG:
     1.8 +        g_value_set_ulong (&p, atol(prop_val));
     1.9 +        break;
    1.10      case G_TYPE_STRING:
    1.11          g_value_set_string(&p, prop_val);
    1.12          break;
    1.13 +    case G_TYPE_BOOLEAN:
    1.14 +        g_value_set_boolean(&p, (gboolean) atoi (prop_val));
    1.15 +        break;
    1.16 +    case G_TYPE_DOUBLE:
    1.17 +        g_value_set_double(&p, atof (prop_val));
    1.18 +        break;
    1.19 +    case G_TYPE_FLOAT:
    1.20 +        g_value_set_float(&p, (float) atof (prop_val));
    1.21 +        break;
    1.22      default:
    1.23 +        g_warning ("Property %s of type %s. Not supported", 
    1.24 +                   prop_name, g_type_name (s->value_type));
    1.25          return;
    1.26      }
    1.27