Re: [Vala] The future of Vala

2016-09-13 Thread Gilzad Hamuni
I consider myself a Vala user and I'd also welcome a donate-button if it really helps the project. Hadn't there been Vala, I most probably wouldn't get in touch with all the glib stuff as a developer. C and CPP take too much effort to gain the same goals. C# is beautiful but still wastes CPU

Re: [Vala] 2 questions on valac in msys2

2016-06-23 Thread Gilzad Hamuni
Hi, I can try to give you some ideas for the first question from my experiences with msys+vala (Win32). In a real linux environment we can use ldd to find out which libraries an executable depends on. $ ldd hello But in my version of msys/mingw ldd doesn't work. However, I don't update my

Re: [Vala] request to add another example to Projects/Vala/ListExample

2016-06-22 Thread Gilzad Hamuni
r of an implemented type (e.g. ArrayList, not List), so my example might prove something different in the end. Just in case it's relevant for our discussion. Best, gilzad Gesendet: Mittwoch, 22. Juni 2016 um 11:10 Uhr Von: "Gergely Polonkai" <gerg...@polonkai.eu> An: "

Re: [Vala] request to add another example to Projects/Vala/ListExample

2016-03-21 Thread Gilzad Hamuni
Hi, just want to say that this is some precious info that I needed to learn yet. As a C#-guy I wonder from a "user's" point of view: If List implies strdup(), wouldn't it be consistent to automatically compare with strcmp() upon removing, too? Or am I making dangerous assumptions that are not

Re: [Vala] Is there any usable editor for Vala?

2016-02-22 Thread Gilzad Hamuni
Hi Matthias, hi Jonathan, here's a version of valencia-0.8 that I applied the patches for gedit >=3.12 on [1]. I got the patches from here [2]. The only additional change I applied to the code, is to make the jump-forth and jump-back feature work with the Alt_R-key (Alt_Gr+Left, Alt_Gr+Right).

Re: [Vala] pass signal to covered window

2016-02-05 Thread Gilzad Hamuni
Oh, that was too easy to think of. Still learning.. Thanks, Ben :)     Gesendet: Freitag, 05. Februar 2016 um 18:22 Uhr Von: "Ben Iofel" <iofel...@gmail.com> An: "Gilzad Hamuni" <gil...@gmx.net>, Vala-list <vala-list@gnome.org> Betreff: Re: [Vala] pass sig

Re: [Vala] pass signal to covered window

2016-02-05 Thread Gilzad Hamuni
es right after emitting the signal. I don't quite know how to translate/use GLib's signal_emitv() to/in Vala either. But for now I got my problem solved without passing signals at all. Best, gilzad > Gesendet: Montag, 01. Februar 2016 um 18:22 Uhr > Von: "Gilzad Hamuni" <

Re: [Vala] Nest ncurses in a Gtk window?

2015-12-07 Thread Gilzad Hamuni
have received two messages, I did not send the first one > through the mailing list. > > Le vendredi 04 décembre 2015 à 19:32 +0100, Gilzad Hamuni a écrit : > > Hi list, > > > > sorry to ask if this has been answered before, I might have chosen > > the wrong ter

[Vala] Nest ncurses in a Gtk window?

2015-12-04 Thread Gilzad Hamuni
Hi list, sorry to ask if this has been answered before, I might have chosen the wrong terms while searching. Is it possible to nest curses into a Gtk.Window? I was thinking of cascading it into a Vte and put that into a Gtk.Window but my thoughts kind of got stuck how to approach correctly in

Re: [Vala] Gdk.RGBA in text tag - possible leak?

2015-05-20 Thread Gilzad Hamuni
Gesendet: Mittwoch, 20. Mai 2015 um 02:22 Uhr Von: Nor Jaidi Tuah You have found a Vala bug. g_object_get (_tmp26_, foreground-rgba, _tmp27_, NULL); From https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-get --snip void g_object_get

Re: [Vala] Gdk.RGBA in text tag - possible leak?

2015-05-19 Thread Gilzad Hamuni
Gesendet: Montag, 18. Mai 2015 um 18:19 Uhr Von: Al Thomas From: Gilzad Hamuni Sent: Monday, 18 May 2015, 16:16 Gesendet: Montag, 18. Mai 2015 um 16:12 Uhr Von: Al Thomas As a hint I would try removing 'weak': Gdk.RGBA tmpColor = Gdk.RGBA(); Thanks Al, if I

Re: [Vala] Pass params through threads_add_idle()

2014-08-28 Thread Gilzad Hamuni
Thanks a bunch, Luca. Passing parameters through closures does work using GLib.Idle.add() instead of Gdk.threads_add_idle(). That helped, thanks again. Best, gilzad     Gesendet: Mittwoch, 27. August 2014 um 21:22 Uhr Von: Luca Bruno lethalma...@gmail.com An: Gilzad Hamuni gil...@gmx.net Cc

[Vala] Pass params through threads_add_idle()

2014-08-27 Thread Gilzad Hamuni
Hi all, I'm trying to pass a parameter to a function that I call through threads_add_idle(). But threads_add_idle() obviously accepts only a SourceFunc. I can't pick up the data from a global variable. So I tried using closures from where I'd pass the needed parameter:   private void

Re: [Vala] Disconnect socket connection

2014-07-29 Thread Gilzad Hamuni
. Juli 2014 um 00:29 Uhr Von: Andrew Benton andrew.benton...@gmail.com An: Gilzad Hamuni gil...@gmx.net Betreff: Re: [Vala] Disconnect socket connection Try using the Socket class' shutdown() method.   http://www.valadoc.org/gio-2.0/GLib.Socket.shutdown.html I don't have time to try it out atm.  I

[Vala] Disconnect socket connection

2014-07-28 Thread Gilzad Hamuni
Hi all,   I've written a little tcp client class and it works well, except that I can't disconnect an existing connection. private SocketClient client; private SocketConnection conn; public void Connect() { client = new SocketClient(); conn = client.connect(socketAddress, null); }

Re: [Vala] Check if event-handler is registered already

2014-07-18 Thread Gilzad Hamuni
. } It's safe to start off by checking a handler ID whose value is 0, because SignalHandler.is_connected() will return false then. Best, gilzad Gesendet: Dienstag, 15. Juli 2014 um 15:07 Uhr Von: Gilzad Hamuni gil...@gmx.net An: vala-list@gnome.org Betreff: [Vala] Check if event-handler

[Vala] Check if event-handler is registered already

2014-07-15 Thread Gilzad Hamuni
Hi all, suppose I have a class that can take callbacks to invoke them in case of any event: public signal void DataReceived(uint8 byte); //... DataReceived(byte); ...and I have a client that registers its handler to it: someInstance.DataReceived.connect(OnDataReceived); //... private void

Re: [Vala] Access GTKText

2014-01-15 Thread Gilzad Hamuni
Perfect! Thank you so much for the info and the helpful example file! Interesting to learn that insert_with_tags(..) can receive many parameters of a TextTag in order to apply many properties (red, bold, fixed) at once. Thanks once again for the great help. Best, gilzad

[Vala] Access GTKText

2014-01-14 Thread Gilzad Hamuni
Hi list,   I've compiled and tested this C-tutorial that shows how to have different fonts, colors and and sizes in a single text box: http://www.gtk.org/tutorial1.2/gtk_tut-14.html   GtkWidget *text; ... text = gtk_text_new (NULL, NULL); ... fixed_font = gdk_font_load

[Vala] Examples in documentation

2012-11-08 Thread Gilzad Hamuni
Hi all, maybe it's already there and I missed to see it. Is it possible to have some account on an existing valadoc-page, so one could add code-examples online rather than working with the markup locally? Knowing that vala is still evolving, I'm facing one issue that probably could be solved

Re: [Vala] Rv: C to Vala

2012-09-21 Thread Gilzad Hamuni
If I understand correctly, that approach requires an intermediate bytecode either from Java or from .NET to finally create sourcecode. Alas, in the OP's case the best we can get would be native machine code (being different for x64, i386, arm, etc) so the parser wouldn't be able to stick to

Re: [Vala] Need Help with GLib.OptionEntry

2011-04-18 Thread Gilzad Hamuni
Hi Karsten, this is happening, because you left out the third field in each entry of your array, which corresponds to the option flags: http://developer.gnome.org/glib/2.28/glib-Commandline-option-parser.html#GOptionFlags I pasted your code here and had a close look on the compiler's output.