Re: [Vala] C# developer, newbie question

2018-12-19 Thread Wolfgang Mauer
Thanks, but same result, does it work that way at all? GLib-GObject-CRITICAL **: 23:22:53.584: g_enum_get_value_by_name: assertion 'G_IS_ENUM_CLASS (enum_class)' failed EnumClass enumc = (EnumClass)typeof(Gdk.WindowState).class_ref (); var state =

Re: [Vala] C# developer, newbie question

2018-12-19 Thread Andy Lees via vala-list
I believe it's because the string produced in your first assignment to strState is the C transformed enum value which concatenates the type and value with an "_". It does this to map the nested name space of Vala enums into the flat C name space. You would need to remove the type + "_" from the

Re: [Vala] C# developer, newbie question

2018-12-19 Thread Wolfgang Mauer
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 =

Re: [Vala] C# developer, newbie question

2018-12-19 Thread Wolfgang Mauer
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 =

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Wolfgang Mauer
>OK, to instantiate it I think it needs to be a GtkChild. What error are you getting with GtkChild? Yes, i also think GtkChild is correct, i just remember that i have a similar problem with gtk-sharp. Found the problem, I'm kidding, forgot to include the namespace Everything works fine,

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Al Thomas via vala-list
> On Tuesday, 18 December 2018, 14:44:30 GMT, Wolfgang Mauer wrote: > So i have to make the "new StatusList" !? Not sure if it's the only way, but the following project uses in the UI filethen instantiates the widget in the constructor of the main window and adds it to that window. These

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Al Thomas via vala-list
> On Tuesday, 18 December 2018, 14:44:30 GMT, Wolfgang Mauer wrote: > So i have to make the "new StatusList" !? > But how the glade-file "mainpaned" should look like??? Just remove the > StatusList ? OK, to instantiate it I think it needs to be a GtkChild. What error are you

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Wolfgang Mauer
Thanks a lot, one Class per template, i understood that, but i can't find [GtkTemplate] inside [GtkTemplate] Am 18.12.18 um 15:03 schrieb Steven Oliver: I used Gtk.Builder + Glade in my application. It might help to see it used in a "real application".

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Steven Oliver via vala-list
I used Gtk.Builder + Glade in my application. It might help to see it used in a "real application". https://github.com/steveno/balistica/blob/master/src/BalisticaApplication.vala#L80 Steven N. Oliver On Tue, Dec 18, 2018 at 8:39 AM Al Thomas via vala-list wrote: >>On Tuesday, 18 December

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Al Thomas via vala-list
>On Tuesday, 18 December 2018, 13:34:17 GMT, Wolfgang Mauer wrote: > Is there a way to have a GtkTemplate inside a GtkTemplate ? It sounds like you are trying to use a widget contained within another widget? I would try that in the GtkBuilder file. So the second widget is references as a

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Wolfgang Mauer
Is there a way to have a GtkTemplate inside a GtkTemplate ? Am 18.12.18 um 12:21 schrieb Wolfgang Mauer: Ok, thanks a lot! Am 18.12.18 um 12:09 schrieb Al Thomas: > On Tuesday, 18 December 2018, 09:27:06 GMT, Wolfgang Mauer wrote: > In vala tried Gtk.Builder "extend_with_template". > If i

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Wolfgang Mauer
Ok, thanks a lot! Am 18.12.18 um 12:09 schrieb Al Thomas: > On Tuesday, 18 December 2018, 09:27:06 GMT, Wolfgang Mauer wrote: > In vala tried Gtk.Builder "extend_with_template". > If i try this in vala with > [GtkChild] private Box mainBox; > i get the error "error: [GtkChild] is only

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Al Thomas via vala-list
> On Tuesday, 18 December 2018, 09:27:06 GMT, Wolfgang Mauer wrote: > In vala tried Gtk.Builder "extend_with_template". > If i try this in vala with > [GtkChild] private Box mainBox; > i get the error "error: [GtkChild] is only allowed in classes with a [GtkTemplate] attribute" > Is

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Wolfgang Mauer
Good example so far, but not answer my question... Am 18.12.18 um 12:00 schrieb Corentin Noël: Hi Wolfgang! You can find an example of Gtk.Builder with Vala soon in Valadoc itself (will be at this page once the site get refreshed: https://valadoc.org/gtk+-3.0/Gtk.Builder.html), in the

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Corentin Noël
Hi Wolfgang! You can find an example of Gtk.Builder with Vala soon in Valadoc itself (will be at this page once the site get refreshed: https://valadoc.org/gtk+-3.0/Gtk.Builder.html), in the meantime a complete example is available from this commit:

[Vala] C# developer, newbie question

2018-12-18 Thread Wolfgang Mauer
Hi all, in gtk-sharp i use the Gtk.Builder to "ExtendWithTemplate" my Widget. In vala tried Gtk.Builder "extend_with_template". In gtk-sharp i can define widgets like this: glade-file source-file [Builder.Object]privateBoxmainBox; [Builder.Object]privateBoxstartPage; If i try

Re: [Vala] C# Developer

2018-10-09 Thread Daniel Espinosa via vala-list
ssible. > > > No "Swiss army knife" just a IDE specially tailored to vala. > > > Von: bernhard.guil...@begu.org > Gesendet: 09.10.2018 22:36 > An: vala-list@gnome.org > Betreff: Re: [Vala] C# Developer > Hi all, > I am not sure which part of the thread to m

Re: [Vala] C# Developer

2018-10-09 Thread wolfgang . mauer
@begu.org Gesendet: 09.10.2018 22:36 An: vala-list@gnome.org Betreff: Re: [Vala] C# Developer Hi all, I am not sure which part of the thread to misuse but maybe we would be good to use something like bountysource or kickstarter to add feature wishes. In my opinion the best way for now is to f

Re: [Vala] C# Developer

2018-10-09 Thread bernhard . guillon
Hi all, I am not sure which part of the thread to misuse but maybe we would be good to use something like bountysource or kickstarter to add feature wishes. In my opinion the best way for now is to forget about performance and go the language server way. Manly because every IDE can share the

Re: [Vala] C# Developer

2018-10-09 Thread Christian Hergert
On 10/09/2018 11:38 AM, Ulink wrote: > Maybe improving Gnome builder Vala integration is the right way? Builder needs someone familiar with Vala internals to take over the Vala plugin (src/plugins/vala-pack) if you want to get better quality integration. I simply don't have time to work on it

Re: [Vala] C# Developer

2018-10-09 Thread Ulink
> If a C# developer really (not only for fun) to change to Vala, then must > necessarily be a valadevelop available! > With completion and tooltips and and and. Agreed, we need a good Vala IDE. > I have already tried a few, but all do not meet the expectations > (Geany/Anjuta/builder) > The

[Vala] C# Developer

2018-10-09 Thread wolfgang . mauer
Maybe the wrong mailing-list ... First of all, I think Vala is good and very performant. I would like to but can not... If a C# developer really (not only for fun) to change to Vala, then must necessarily be a valadevelop available! With completion and tooltips and and and. I have already tried