Re: [Vala] C# developer, newbie question
- From: Wolfgang Mauer <wolfgang mauer kabelmail de>
- To: Vala-list <vala-list gnome org>
- Subject: Re: [Vala] C# developer, newbie question
- Date: Wed, 19 Dec 2018 12:28:28 +0100
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]