+/* $Id$
+
+This file is part of libmspgltk
+Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
#include "state.h"
using namespace std;
{
string str;
is>>str;
- if(str=="normal")
+ if(str=="NORMAL")
state=NORMAL;
- else if(str=="hover")
+ else if(str=="HOVER")
state=HOVER;
- else if(str=="active")
+ else if(str=="ACTIVE")
state=ACTIVE;
- else if(str=="disabled")
+ else if(str=="DISABLED")
state=DISABLED;
else
is.setstate(ios_base::failbit);