[Vala] [BugĀ 590324] Syntax sugar for notific ations

2009-08-30 Thread Maciej Piechotka
I tried to contact vala developers other ways but I guess I'm filtered out by spam filters or something like that. I'd like to propose a sugar syntax for notifications: object.property::notify += ... or object.notify::property += ... The second syntax will work with details of signals as

Re: [Vala] [Bug 590324] Syntax sugar for notifications

2009-08-30 Thread Frederik
Maciej Piechotka wrote: I tried to contact vala developers other ways but I guess I'm filtered out by spam filters or something like that. I'd like to propose a sugar syntax for notifications: object.property::notify += ... or object.notify::property += ... The second syntax will

[Vala] [PATCH 1/2] vapi/posix.vapi: Add sys/mman.h memory management functions.

2009-08-30 Thread Julian Andres Klode
Add support for the complete POSIX set of functions in mman.h like mmap(), munmap() and mprotect() and also support the MLR and XSI extension functions. Signed-off-by: Julian Andres Klode j...@jak-linux.org --- vapi/posix.vapi | 36 1 files changed, 36

Re: [Vala] [Bug 590324] Syntax sugar for notifications

2009-08-30 Thread Maciej Piechotka
Frederik scumm_fr...@... writes: The current syntax is: object.notify[property] += ... // deprecated or object.notify[property].connect (...) How is this hard? Best regards, Frederik Point for you. I haven't spotted this sytntax (I bet I searched both vala documentation

[Vala] removing an element from a list

2009-08-30 Thread jezra lickter
Hello, For an application that I am working on, I need to keep a collection of strings and possibly remove a string from the collection. A list seems to be a good way to manage the strings but when I try to remove() or remove_all(), the list doesn't change. for example: public static void

Re: [Vala] [Bug 590324] Syntax sugar for notifications

2009-08-30 Thread Yu Feng
On Sun, 2009-08-30 at 19:03 +, Maciej Piechotka wrote: Frederik scumm_fr...@... writes: The current syntax is: object.notify[property] += ... // deprecated or object.notify[property].connect (...) How is this hard? Best regards, Frederik Point for

Re: [Vala] Getting path to my program's directory

2009-08-30 Thread Yin Jintao
2009/8/28 Jan Hudec b...@ucw.cz Hello, A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? On Fri, August 28, 2009 09:02, Yin Jintao wrote: You can using