Re: [Vala] C# developer, newbie question



Hi all,
i try to put a enum to string and back, with no success.

var strState = get_window().get_state().to_string(); <-- "GDK_WINDOW_STATE_FOCUSED"

and back dont work

EnumClass enumc = (EnumClass)typeof(Gdk.WindowState).class_ref ();
var state = (Gdk.WindowState)enumc.get_value_by_name(strState).value;

What im doing wrong?

Thanks for help
Wolfgang



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]