Treat "percent" columns in hublist as ints.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 10 Oct 2007 04:18:56 +0000 (06:18 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 10 Oct 2007 04:18:56 +0000 (06:18 +0200)
clients/gtk2/hublist-xml.c

index d72291d..46a53ce 100644 (file)
@@ -119,6 +119,8 @@ int pubhubxmlhandler(int op, char *buf, size_t len)
                    type = G_TYPE_STRING;
                else if(!strcmp(stype, "int"))
                    type = G_TYPE_INT;
+               else if(!strcmp(stype, "percent"))
+                   type = G_TYPE_INT;
                else if(!strcmp(stype, "bytes"))
                    type = G_TYPE_INT64;
            }