Re: [Vala] Does vala provide syntactic sugar for "weak" references that know when its peer has been nulled?

2010-03-03 Thread Jan Hudec
On Wed, Mar 03, 2010 at 15:22:59 -0600, Sandino Flores Moreno wrote: > Is it possible for a weak ref to know when its peer object has been > deleted (and then assigned to null)? Object is not assigned null. Variable is. Anyway, I believe it still is the plan (and reason why the current kind is cal

[Vala] Does vala provide syntactic sugar for "weak" references that know when its peer has been nulled?

2010-03-03 Thread Sandino Flores Moreno
Hello. Is it possible for a weak ref to know when its peer object has been deleted (and then assigned to null)? Because, suppose you have a weak reference, then the real object is deleted. So your "weak reference" should be notified, otherwise you might get segfaults. Something to better write th

Re: [Vala] ComboBoxEntry+GtkBuilder (Solved)

2010-03-03 Thread Arley Consuegra Rosello
Sorry I'm stupid. " Secondly, are you sure some text is selected when you code runs? If nothing is selected, nothing will be returned." Thank to the advice I solved my problem. I was running "url_repo.get_active_text();" before write any data in the ComboBoxEntry. _

Re: [Vala] ComboBoxEntry+GtkBuilder

2010-03-03 Thread Tadej Borovšak
Hi. > *Code* > var url_repo  = builder.get_object  ("url_repo") as ComboBoxEntry; >  url_repo.append_text("lolo"); > >  string url  = url_repo.get_active_text(); > stdout.printf("%s\n",url); > > *Code**

[Vala] ComboBoxEntry+GtkBuilder

2010-03-03 Thread Arley Consuegra Rosello
Hello, I'm trying to get the text in a ComboBoxEntry created with glade (GtkBuilder format) In the glade file I add a ListStore (with a gchararray column) to the ComboBoxEntry . *Code* var url_repo = builder.get_object ("url_repo") as

[Vala] Getting the official module example to work on Windows

2010-03-03 Thread Anatoli Steinmark
Hi, I'm having trouble with the module example from http://live.gnome.org/Vala/TypeModules. I'm using MinGW (GCC 4.4.0) on Windows (XP with SP3) with the recent (0.7.10) Vala compiler from http://code.google.com/p/valide/downloads/list. Here's what I do: /**