On Fri, 2008-11-21 at 21:03 +0100, Jürg Billeter wrote:
On Fri, 2008-11-21 at 02:59 -0500, Yu Feng wrote:
On Wed, 2008-11-19 at 18:26 -0500, Yu Feng wrote:
When the collections in Gee are holding strong references, it is
difficult to obtain a weak reference to the elements
Dear Jurg and others,
I have an idea about chaining up constructors to share with you.
Situation
We have 2 different constructors, the construction block(CB), and the
construct function(CF).
for GType based classes, CB doesn't work, chaining up CF works.
for GObject based classes, CB
Hi,
DBusGProxy has two signals 'destroy' and 'received'.
Is it possible to connect to these two signals by simply add the
signatures to dbus-glib-1.vapi?
Regards,
Yu
___
Vala-list mailing list
Vala-list@gnome.org
Super fast!
On Mon, 2008-11-03 at 23:06 +0100, Jürg Billeter wrote:
We are pleased to announce version 0.5.1 of Vala, a compiler for the
GObject type system.
Vala 0.5.1 is now available for download at:
http://download.gnome.org/sources/vala/0.5/
Changes since 0.4.0
* Support type
On Fri, 2008-10-31 at 12:16 -0700, Christian Hergert wrote:
Anything against the following?
new Person () {
login = Bob,
password = hello,
email = [EMAIL PROTECTED]
};
How much typings does it save you?
Cheers,
-- Christian
2008/10/31 Кутейников Дмитрий [EMAIL
On Fri, 2008-10-31 at 20:35 +0100, Federico Pelloni wrote:
Hi
In my app I'm using some new features from Gtk 2.14, but I don't want
to depend on such a recent release just for a couple of minor things,
so I'd like to use them only if available.
I'm wondering if there's a way to check if a
On Thu, 2008-10-30 at 07:21 +0100, Jürg Billeter wrote:
Hi Yu,
On Wed, 2008-10-29 at 19:05 -0400, Yu Feng wrote:
vala will try to call panel_applet_construct from my_applet_construct
which doesn't exist.
I had a short look into gtk+-2.0.vapi. There are a lot of such empty
parameter
Hi Matias,
It doesn't work if Test is a subclass of Object.
Yu
On Wed, 2008-10-22 at 10:27 -0200, Matías De la Puente wrote:
Hi Yu
I patch the glib.vapi changing Markup delegates
http://bugzilla.gnome.org/show_bug.cgi?id=553282
I done that to use this inside the method of the class.
On Wed, 2008-10-22 at 12:05 -0200, Matías De la Puente wrote:
Thanks for the clarifying! But I am still curious why my code didn't
work.
class MyClass {
public static MarkupParser p;
void somefunction() {
p.start_element = start_element;
}
void start_element(
I updated to vala 0.4.0 for my panel applet, and receive this error.
It seems to be related to the new chaining _new functions.
whenever the vapi file has something like
namespace Panel {
class Applet: Gtk.EventBox{
public Applet();
}
}
and I subclass it
class MyApplet:Applet {
/ mog\Irc
On Sat, Oct 25, 2008 at 10:04 AM, Yu Feng [EMAIL PROTECTED] wrote:
Can I use vala-doc to generate api documentation of my library written
in vala?
Are there any alternative methods?
Regards,
Yu
___
Vala-list
On Sat, 2008-10-25 at 04:34 -0230, Shane O'Connell wrote:
Hi all,
When I try to compile the following code:
using GLib;
public class TestClass : Object
{
public ITestInterface test {construct; get; }
public TestClass(ITestInterface test)
{
this.test = test;
Or VALA can provide such facilities in libgee or somewhere with a
GObject Interface?
We don't have any core vala runtime libraries yet.
On Fri, 2008-10-24 at 19:57 +0200, Frederik wrote:
Roberto Majadas wrote:
Hi everyone :
Could be really interesting a method like __str__ method in
First let congratulate the new Vala release.
I was trying to upgrade to vala 0.4.0 but I ran into troubles with
GMarkup very quickly.
The GMarkup callbacks were declared as static in 0.3.5(I hope it wasn't
modified to static by me); in 0.4.0 they become non-static.
However, these functions
-18 at 00:42 -0400, Yu Feng wrote:
On Fri, 2008-10-17 at 07:44 +0100, Sam Liddicott wrote:
If you seach recent vala posts by me, you'll see some discusion on this
topic.
I really got lost in the sea of emails. What is the title of the
disscussion?
Have a look at the thread 'Implicit
body so that
we know when the function returns.
No IPC/ITC(inter thread calling? ;-] ) thing and therefore the keyword
'async' doesn't fit anyways.
Yu
Sam
-Original Message-
From: Yu Feng [EMAIL PROTECTED]
Sent: 16 October 2008 14:39
To: vala-list vala-list@gnome.org
Subject
Hi all,
Will it be useful to make VALA capable of producing mm(C++) bindings for
the libraries?
Where should be a good point to start?
Regard,
Yu
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
Hi,
there is a link at http://live.gnome.org/GObjectIntrospection/
saying that gtkmm 'can' use gobject-introspection.
Is anyone working on this / when will it likely to be done?
Yu
On Tue, 2008-10-14 at 09:48 -0700, Michael Lawrence wrote:
On Tue, Oct 14, 2008 at 9:04 AM, Yu Feng [EMAIL
);
--- On Sun, 10/5/08, Yu Feng [EMAIL PROTECTED] wrote:
From: Yu Feng [EMAIL PROTECTED]
Subject: Re: [Vala] TreePath from TreeView.get_cursor() never freed?
To: [EMAIL PROTECTED]
Cc: vala-list@gnome.org
Date: Sunday, October 5, 2008, 5:43 PM
On Sun, 2008-10-05 at 06:00 -0700, Geert Jan
On Sun, 2008-10-05 at 06:00 -0700, Geert Jan wrote:
Hello,
This doesn't seem right to me. When in Vala I write:
weak TreePath path;
What about make it strong?
TreePath path;
weak TreeViewColumn focus_column;
treeview.get_cursor (out path, out focus_column);
...it generates the
Hi, are there any reasons to avoid GStringChunk in glib bindings?
I found it useful if one wants to avoid duplicated strings for xml tags
and xml property names in a tree of XMLNode objects.
I filed Bug 553068 at bz.
Yu
___
Vala-list mailing list
the delegate and Object.add_toggle_ref, remove_toggle_ref are missing.
Because they are manual memory management?
If I have to use them, is there a workaround without modifying
glib-2.0.vapi?
Yu
___
Vala-list mailing list
Vala-list@gnome.org
On Sat, 2008-08-23 at 10:00 -0300, Martin (OpenGeoMap) wrote:
Hi:
Someone know how c++ manage the member in classes.
You might want to read this.
http://en.wikipedia.org/wiki/Virtual_table
Look at the examples section. The vtable pointer in is similar to
GTypeInstance member in GLib.
I
, 2008-08-22 at 08:24 +0200, Ali Sabil wrote:
On Fri, Aug 22, 2008 at 7:32 AM, Yu Feng [EMAIL PROTECTED]
wrote:
On Thu, 2008-08-21 at 23:18 +0100, Emmanuele Bassi wrote:
On Thu, 2008-08-21 at 14:27 -0400, Yu Feng wrote:
Dear all,
I
On Fri, 2008-08-22 at 11:54 +0200, Jürg Billeter wrote:
On Fri, 2008-08-22 at 05:24 -0400, Yu Feng wrote:
On Fri, 2008-08-22 at 11:04 +0200, Jürg Billeter wrote:
Another direction of this patch is to allow small wrapping code in
the .vapi declarations (which might ease the vapi
Forwarded Message
From: Hubert Figuiere [EMAIL PROTECTED]
To: Yu Feng [EMAIL PROTECTED]
Cc: gtk-devel-list [EMAIL PROTECTED]
Subject: Re: Lacking of a ref-counted string.
Date: Wed, 20 Aug 2008 21:49:40 -0400
On Wed, 2008-08-20 at 20:47 -0400, Yu Feng wrote:
First
Dear Juerg, and others,
A trunk built from a vala 0.3.4 can not compile any program, giving the
following error.
oxoxoxoxoxoxoxoxox
(lt-valac:9022): GLib-GObject-WARNING **: invalid cast from
`GeeArrayList' to `GObject'
(lt-valac:9022): GLib-GObject-CRITICAL **: g_object_get: assertion
Dear all,
I made a patch that allows embedding c code snippet in vala source.
http://bugzilla.gnome.org/show_bug.cgi?id=548897
This is quite primitive and more has to be done, especially to translate
the vala variable names to cnames.
I would like to analogue this with embedding asm code in c.
Hi Alex,
Fortunately I was dealing with the same problem too.
The key is for a property, you almost always want a weak string, and
manage the string in the object. In other words, this code will be fine:
public class Info.PersonInfo {
private string fio_;
public weak string fio {
get {
Dear friends,
Yesterday or so I was attempting to rewrite a piece of my little project
in C+GLib to VALA. It heavily utilizes string operation and array
operation.
Eventually I failed in the attempt. What I found is, I have to use weak
string everywhere, and I have to workaround the array
On Wed, 2008-08-20 at 18:54 +0100, Sam Liddicott wrote:
Yu Feng wrote:
Hi Alex,
Fortunately I was dealing with the same problem too.
The key is for a property, you almost always want a weak string, and
manage the string in the object. In other words, this code will be fine
Forwarded Message
From: Bastien Nocera [EMAIL PROTECTED]
To: Yu Feng [EMAIL PROTECTED]
Cc: gtk-devel-list [EMAIL PROTECTED]
Subject: Re: Lacking of a ref-counted string.
Date: Wed, 20 Aug 2008 20:15:49 +0100
On Wed, 2008-08-20 at 15:10 -0400, Yu Feng wrote:
Dear Devs
On Wed, 2008-08-20 at 22:43 +0200, Jürg Billeter wrote:
On Wed, 2008-08-20 at 22:29 +0200, Ali Sabil wrote:
On Wed, Aug 20, 2008 at 9:10 PM, Yu Feng [EMAIL PROTECTED]
wrote:
Dear Devs,
Is there any particular reason that GLib doesn't provide
A fact:
I can't start a class from GTypeInstance in vala 0.3.5, Vala will try to
use GTypeInstanceClass as the c class name whereas GTypeClass should be
used.
and in glib-2.0.vapi
TypeInstance is labelled as deprecated.
Yu
On Thu, 2008-08-07 at 14:16 +0100, Sam Liddicott wrote:
Hi Juan,
Dear friends,
I can not find any way to make it work.
It keeps reporting can not pass an owned object to an unowned object
stuff:
protected override void from_string(string str){
weak string s = str;
weak string end_ptr = null;
int dimensions = 0;
It compilers on AIX 5.3 after a make uninstall to remove the old 0.3.2
installation.
Yu
On Thu, 2008-08-14 at 23:13 +0200, Jürg Billeter wrote:
We are pleased to announce version 0.3.5 of Vala, a compiler for the
GObject type system.
Vala 0.3.5 is now available for download at:
+1
Yu
On Thu, 2008-08-07 at 17:46 +, Juan Luis Paz wrote:
I'm very interesting in this project, congratulations for this
excellent job.
I'm a C# and java programmer, and gnome user, but I never programmed
using the GObject type system; I'm learning about that for understand
the
On Fri, 2008-07-18 at 10:29 -0300, Matías De la Puente wrote:
2008/7/17 Yu Feng [EMAIL PROTECTED]:
Hi Matias,
1. Gdk.Window isn't a GObject.
Gdk.Window IS a GObject, you can see this in
http://library.gnome.org/devel/gdk/stable/gdk-Windows.html#GdkWindow
Thanks
On Sat, 2008-05-17 at 02:41 +0100, Alberto Ruiz wrote:
2008/5/17 Yu Feng [EMAIL PROTECTED]:
Dear All,
Any one has any experience to build vala on an AIX?
Hi Yu,
Have you actually tried yourself? I'm sure that pretty much none in
the Vala has access to an AIX
:
On Sun, 2008-05-11 at 03:39 -0400, Yu Feng wrote:
The need for an 'Any' type emerges in the following context:
Object o = new Object();
Object o1 = new Object();
string s = string
o.set_data(data, o1);
o.set_data(string, s);
set_data is currently declared as
set_data(string
Dear developer,
The CCode series of modifier are good. But
(1) do we really need to make it so abstract?
(2) the array problem is not easy to solve.
and such.
I suggest a new way to specific the way vala mangles the member
functions?
CCodeFunc = cname(paralist);
where cname is the c
vala will translate setting property:
---
a.prop = value
to
---
class_a_set_prop (a, value);
---
and this won't emit a notify signal, because the signal is only emitted
by g_object_set.
However, if I want to catch the signal, what should I do?
Yu
Forwarded Message
From: Yu Feng [EMAIL PROTECTED]
To: Jürg Billeter [EMAIL PROTECTED]
Subject: Re: [Vala] How to obtain number of elements in array
Date: Wed, 30 Apr 2008 01:37:35 -0400
Not always.
If the string is created by:
string s = a|b|c;
string[] x = s.split
Dear folks,
this is a little patch to allow me to emit a dbus signal via the
following code:
--
[DBus (name = org.gnome.TestServer)]
public class TestServer : GLib.Object {
int64 counter;
public signal void event(string msg);
public int64 ping (string msg) {
101 - 144 of 144 matches
Mail list logo