Re: [Vala] RELEASE: Vala 0.16.0 + GTK 3.4.2 for Win32
Thanks a lot, any luck on 0.17? Is OpenGL and SDL also shipping, or are those removed from Windows version? On Tue, Sep 18, 2012 at 1:58 PM, Alexandr Alexeev afis...@gmail.com wrote: Great news! Thank you. 2012/9/18 tarn...@tarnyko.net: Hello people, In the same mood as my former announce ; here you'll find a bundle for Vala 0.16.0 and GTK+ 3.4.2 on Windows. GTK+ 2 is still therein just in case. Download link here : http://www.tarnyko.net/en/?q=node/10 or here : http://www.tarnyko.net/dl/vala.htm - News for ValaWinPKG users : * Vala 0.12.0 with GTK+3, the following packages were uploaded/updated : - Clutter - Mx Toolkit - LibGee - LibSoup - WebKitGTK3 (Mx Toolkit is buggy -fonts don't show up- but as not everybody uses them, it's there) * Vala 0.16.0 with GTK+3, no repo yet, WIP ! Regards, Tarnyko ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list -- С уважением, Александр Личный блог: http://eax.me/ Мой форум: http://it-talk.org/ Мой Twitter: http://twitter.com/afiskon ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Emacs Mode and lambda indentation
I don't know how to write Emacs modes, and vala-mode seems to have a problem: cubes.foreach (() = { }); It doesn't indent those well. Basically, instead of indenting with 4 spaces (like it does on if's, for's and other stuff), vala-mode indents with 8 spaces on the content** and with 4 spaces on the closing line with });. Does anybody have any idea of how to fix this? Thank you very much :) ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] SDL TTF Bindings can't find font
Hello there, first of all here's the relevant part of my code: using SDLTTF; (...) public void draw_string (string text, int x, int y, Color color) { Rect destination = {}; Font pixel_font = new Font (font.ttf, 20); if (pixel_font == null) print (Font not found\n); (...) } Basically, pixel_font is always null and I am sure font.ttf is on the same directory as the binary executable: ~/src/thegame $ ls thegame Game.vala Cube.Vala font.ttf Makefile PlayState.vala State.vala ~/src/thegame $ ls I also tried renaming the file, or putting the font in a special folder. Oh, and I'm calling the executable on the same directory as the font and the binary. Here's my compile line on my Makefile: valac --pkg gl --pkg sdl --pkg sdl-gfx --pkg gio-2.0 --pkg sdl-image --pkg sdl-ttf -X -lSDL_gfx -X lSDL_image -X lSDL_ttf --Xcc=-I/usr/include/SDL -o thegame Game.vala State.vala State.vala PlayState.vala It compiles with 0 warnings and 0 errors too by the way. -- David Gomes ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] SDL TTF Bindings can't find font
Oh, I forgot, thank you tons, that was it! On 9/15/12, tarn...@tarnyko.net tarn...@tarnyko.net wrote: Hi David, Do you have the following line at the beginning of your method : SDLTTF.init (); Regards, Tarnyko David Gomes writes: Hello there, first of all here's the relevant part of my code: using SDLTTF; (...) public void draw_string (string text, int x, int y, Color color) { Rect destination = {}; Font pixel_font = new Font (font.ttf, 20); if (pixel_font == null) print (Font not found\n); (...) } Basically, pixel_font is always null and I am sure font.ttf is on the same directory as the binary executable: ~/src/thegame $ ls thegame Game.vala Cube.Vala font.ttf Makefile PlayState.vala State.vala ~/src/thegame $ ls I also tried renaming the file, or putting the font in a special folder. Oh, and I'm calling the executable on the same directory as the font and the binary. Here's my compile line on my Makefile: valac --pkg gl --pkg sdl --pkg sdl-gfx --pkg gio-2.0 --pkg sdl-image --pkg sdl-ttf -X -lSDL_gfx -X lSDL_image -X lSDL_ttf --Xcc=-I/usr/include/SDL -o thegame Game.vala State.vala State.vala PlayState.vala It compiles with 0 warnings and 0 errors too by the way. -- David Gomes ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Keyboard input, e.keyval and accel_groups
Hello there, I'm working on Pantheon Terminal (lp:pantheon-terminal), and I'm running into a rather odd Vala issue. I want to implement Ctrl-+ and Ctrl-- for zooming in and out of the terminal. this.key_press_event.connect ((e) = { switch (e.keyval) { case Gdk.Key.plus: print(Plus signal!\n); break; } return false; }); I have that code on my Gtk.Window to listen to keyboard events on the terminal window. On my build, it works just fine, I hit the Plus button and the program is listening to it. However, other people (namely using German keyboard and Portuguese keyboard) don't get the output Plus signal!. I also tried using an accel_group with the following actions: { ZoomIn, Gtk.Stock.ZOOM_IN, N_(Zoom in), Controlplus, N_(Zoom in), action_zoom_in_font }, { ZoomOut, Gtk.Stock.ZOOM_OUT, N_(Zoom out), Controlminus, N_(Zoom out), action_zoom_out_font }, These work just fine for me, when I hit Controlplus the action_zoom_in_font is executed and the font is zoomed in on. However, it's not working for some other people. Any ideas on what can be causing this? I'm very sure they're building it just fine from the correct branch, and I've tried many similar things. Thank you in advance. ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] GTK+ Tutorial
Regarding the coding convetions, it is my understanding that in Vala you should put a space before parenthesis. Check https://live.gnome.org/Vala/Hacking#Coding_Stylhttps://live.gnome.org/Vala/Hacking#Coding_Style e https://live.gnome.org/Vala/Hacking#Coding_Style Either way, this is a great idea and it's looking very good :) On Wed, Aug 29, 2012 at 9:39 PM, Horace Abenga horaceabe...@gmail.comwrote: Hi all, I'm planning on writing a comprehensive GTK+ programming using Vala tutorial that will loosely follow the classic GTK+ tutorial (http://developer.gnome.org/gtk-tutorial/2.90/). I've done the first four chapters, which can be found (in docbook xml) on https://github.com/abenga/valagtktutorial . I'm requesting for comments, especially on coding conventions, best practice coding techniques, and any other suggestions of things I should include or remove, before I go too far. Please check it out and let me know. Horace. ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Emacs vala-mode
Ah, good point. Then how do you suggest we make it so that the user configures it on init.el? On Thu, Aug 23, 2012 at 8:16 PM, Stefan Risberg steffeno...@gmail.comwrote: Yes but with your patch it will *force* spaces. I myself like tabs for indentation and spaces for aligment, but thats my preference. Stefan On Thu, Aug 23, 2012 at 08:05:56PM +0100, David Gomes wrote: (setq indent-tabs-mode nil) will *not* work on default vala-mode. Vala-mode *forces* tabs. On Thu, Aug 23, 2012 at 8:04 PM, Evan Nemerson e...@coeus-group.com wrote: On Thu, 2012-08-23 at 19:19 +0100, David Gomes wrote: Vala's official indentation method is 4 spaces. However, vala-mode on [citation needed]. The closest thing to an official statement on the matter that I'm aware of is the valac source code, which uses tabs. Vala's website is made it so that Emacs indents with tabs. Attached is a fixed version of that vala-mode.el to make it indent with spaces. It's really a personal, or per-project, preference. People who want spaces can use their ~/.emacs to (setq indent-tabs-mode nil) to do so. I do (I prefer two spaces). You could also use file variables to set this on a per-file basis, or directory variables (see http://www.emacswiki.org/emacs/DirectoryVariables) to set it for an entire project. I think it should be replaced on Vala's (live.gnome) website. I don't think it should be unless you can cite your source for the official indentation method statement, but it /is/ a wiki... -Evan ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Uint32 Color
http://valadoc.org/#!api=sdl-gfx/SDLGraphics.Rectangle.fill_color Regarding that function, how can I have an Uint32 act as a color? I tried 0xFF but no luck. Thank you. -- David Gomes ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Vala Version
https://bbs.archlinux.org/viewtopic.php?pid=1083441 If anybody can give that a look... I built vala-devel from source, but valac --version doesn't work, so building tools like Make don't detect Vala version. Thank you. -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Vala Version
I'm not sure if it's related, because I don't get a wrong version, I get this: david@davidarch:~$ valac --version valac: error while loading shared libraries: libvala-0.14.so.0: cannot open shared object file: No such file or directory david@davidarch:~$ On Fri, Apr 6, 2012 at 1:42 PM, Daniel Espinosa eso...@gmail.com wrote: There's a bug in vala when you build from source, at least in 0.15.2 and above, because it declares a wrong version. See at https://bugzilla.gnome.org/show_bug.cgi?id=671097 El abr 6, 2012 6:52 a.m., David Gomes davidrafago...@gmail.com escribió: https://bbs.archlinux.org/viewtopic.php?pid=1083441 If anybody can give that a look... I built vala-devel from source, but valac --version doesn't work, so building tools like Make don't detect Vala version. Thank you. -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Vala Version
Thanks, but how would I do go about doing it? 2012/4/6 Łukasz Pankowski lukp...@o2.pl David Gomes davidrafago...@gmail.com writes: I'm not sure if it's related, because I don't get a wrong version, I get this: david@davidarch:~$ valac --version valac: error while loading shared libraries: libvala-0.14.so.0: cannot open shared object file: No such file or directory david@davidarch:~$ you either did not install vala or your lib directory is non standard (example ~/local/lib) and you need to add it to LD_LIBRARY_PATH -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Posix Bindings
Hello everyone, Where can I find Posix bindings for Vala? I found https://github.com/ony/heatoff/blob/master/posix-regex.vapi, but that is posix-regex. My application uses the Posix namespace, and I can't find .vapi's for it, or the source code so that I can build it and install it. Any idea? Thank you. -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Posix Bindings
Thank you, I just got it! 2012/4/4 Tal Hadad tal...@hotmail.com It comes with Vala installation. It shell be the location $(prefix}/share/vala-0.xx/vapi/posix.vapi. For example, in my Debian machine, it's is /usr/share/vala-0.16/vapi/posix.vapi If for some reason you still can't find them installed, you can dig in Vala tarballs. Yours, Tal Date: Wed, 4 Apr 2012 22:05:49 +0100 From: davidrafago...@gmail.com To: vala-list@gnome.org Subject: [Vala] Posix Bindings Hello everyone, Where can I find Posix bindings for Vala? I found https://github.com/ony/heatoff/blob/master/posix-regex.vapi, but that is posix-regex. My application uses the Posix namespace, and I can't find .vapi's for it, or the source code so that I can build it and install it. Any idea? Thank you. -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Set a RGBA colourmap on Gtk.Window
Thanks for the links. So I read them and I did this: Visual terminal_visual = this.get_screen ().get_rgba_visual (); my_terminal.set_visual (terminal_visual); my_terminal.set_background_transparent (true); I did it, but I still get the wallpaper as background, instead of real transparency, so I can see underneath windows. What am I doing wrong? Thanks. On Thu, Jan 19, 2012 at 3:03 PM, Abderrahim Kitouni a.kito...@gmail.comwrote: في ر، 18-01-2012 عند 16:55 + ، كتب David Gomes: Hey, I read the following on Valadoc here: http://valadoc.org/vte-2.90/Vte.Terminal.background_transparent.html, Note: When using a compositing window manager, you should instead set a RGBA colourmap on the toplevel window, so you get real transparency. Now my doubt is how to set an RGBA colormap on a widget or on a Gtk.Window? See the following methods: http://valadoc.org/gdk-3.0/Gdk.Screen.get_rgba_visual.html http://valadoc.org/gtk+-3.0/Gtk.Widget.set_visual.html HTH, Abderrahim -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Vala logo
Something cleaner and simpler for the font. On Monday, January 2, 2012, Steven Oliver wrote: Second that. A more readable font for VALA would be a plus in my opinion as well. On Jan 2, 2012, at 12:28 PM, Dr. Michael Lauer wrote: I also like version 5, however I think the typography should be reconsidered. While it looks cool and scifi-like, I'd appreciate something more readable. Cheers, :M: ___ vala-list mailing list vala-list@gnome.org javascript:; http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org javascript:; http://mail.gnome.org/mailman/listinfo/vala-list -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Vala IRC Bot
Does anybody know about a simple Vala IRC bot? (I found https://github.com/cmende/foobot-vala, but I think it has too much stuff I don't need, and seems way too more complex than it should be), so I'd like something simple, perhaps with a single class. Thanks! -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Vala 0.16
vala: error while loading shared libraries: libvala-0.16.so.0: cannot open shared object file: No such file or directory. Guys, I built Vala 0.16 from source on Ubuntu 11.10, and after sudo make install, I got that. I used to have 0.14, which I got from the Ubuntu repositories. What do you suggest? Thanks. -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Vala on Windows/Mac OS
I would like to know the status of Vala in other operating systems (besides Linux). How well does it work? What about its bindings (Gtk, for example)? Thanks. I'm writing an article on Vala for a magazine, and I need to know if I can reference its cross-platformness as a plus. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Changing cursor position in a buffer
Since cursor_position is a read-only property of a Gtk.TextBuffer, is there a way to change the cursor position? If this isn't possible, is there a way to remove all the selections in a text buffer, and maintaining the cursor position, so that I don't have to change it after. Thanks. -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Apply a RegEx in Vala
I read the ValaDoc on RegEx's and the example in live.gnome.org. However, I couldn't figure out how to apply regular expressions in Vala. I have this: var my_regex = new Regex ([^a-zA-Z0-9]); string my_string = Hello World()///; my_regex.replace (my_string, my_string.length, 0, ); print (%s\n, my_string); This snippet should remove all spaces and spaces and symbols. However, it doesn't seem to be working. Any ideas? Thanks in advance. -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] How to know if a key is being pressedf
Is there a way of knowing if a key is being pressed without a whole override function (event) for it? Currently, I need to know if any of the Control Keys (CONTROL_R, or CONTROL_L) and would like to do it in another function. Is there a way I can do it? Thanks -- David Gomes ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list