I'm using vala 0.7.9 and have got stuck in using menuitem signals.
Here is a sample code I wrote:
var actiongroup = new Gtk.ActionGroup(MainActions);
Gtk.MenuItem menuitem = new Gtk.MenuItem.with_mnemonic(_Actions);
Gtk.Menu actionmenu = new Gtk.Menu();
Gtk.Action test = new Gtk.Action
Nor Jaidi Tuah píše v St 03. 02. 2010 v 09:36 +0800:
Q1.
What is the recommended way of aborting an
async function so that another invocation can
be made only after the previous one has
stopped, thus ensuring that there is at most
one invocation at any time?
I think I don't fully
Q2.
Any hope of getting the following replaced
with a better syntax? :-)
Idle.add(async_function.callback);
yield;
Why not simply:
yield;
?
Because 'yield' just stops the method until the callback resumes it. It
does nothing else. You can for example
Hello list,
compiling this min vala test file I got code that calls
_data_ = g_slice_new0 (testDBusProxySetLedData);
in test_dbus_proxy_set_led_async which is never freeed nor has the
dbus_pending_call_set_notify (_pending, test_dbus_proxy_set_led_ready,
_data_, NULL);
a valid
Sam Wilson píše v St 03. 02. 2010 v 10:01 -0500:
Q2.
Any hope of getting the following replaced
with a better syntax? :-)
Idle.add(async_function.callback);
yield;
Why not simply:
yield;
?
Because 'yield' just stops the method until the
We should try to limit the amount of GLib specific syntactic sugar.
True, especially in the light of alternative backends, such as the
forthcoming Dova.
Not
add new and totally illogical constructs, just because we are lazy to
type a single extra line, which is nowhere near being a single
Nor Jaidi Tuah píše v Po 01. 02. 2010 v 14:44 +0800:
Coalesce operator (??) is now implemented in master. ;)
https://bugzilla.gnome.org/show_bug.cgi?id=580816
May I suggest adding ??=, as in
x ??= y;
That would be quite logical I think.
I've opened an enhancement request on the
Xavier Bestel píše v Po 01. 02. 2010 v 12:24 +0100:
On Mon, 2010-02-01 at 14:44 +0800, Nor Jaidi Tuah wrote:
Coalesce operator (??) is now implemented in master. ;)
https://bugzilla.gnome.org/show_bug.cgi?id=580816
May I suggest adding ??=, as in
x ??= y;
Too bad C# choose ?? as
On http://live.gnome.org/Vala/ there is a link to access Valadoc Online
API Documentation (http://valadoc.org/), but i have an error
404 Not Found
The requested URL / was not found on this server.
Apache/2.2.3 (Debian)
On Wed, 2010-02-03 at 17:50 +0100, Jiří Zárevúcky wrote:
Xavier Bestel píše v Po 01. 02. 2010 v 12:24 +0100:
On Mon, 2010-02-01 at 14:44 +0800, Nor Jaidi Tuah wrote:
Coalesce operator (??) is now implemented in master. ;)
https://bugzilla.gnome.org/show_bug.cgi?id=580816
May I
Alessandro Pellizzari píše v St 03. 02. 2010 v 18:23 +0100:
Il giorno mer, 03/02/2010 alle 17.52 +0100, Jiří Zárevúcky ha scritto:
Based on a few requests, I've created a blog for this. Hope you'll like
it :)
http://valajournal.blogspot.com/
Thank you. I subscribed to the feed.
can you put the full post in main page? :) its anoying click to read
Jiří Zárevúcky wrote:
Alessandro Pellizzari píše v St 03. 02. 2010 v 18:23 +0100:
Il giorno mer, 03/02/2010 alle 17.52 +0100, Jiří Zárevúcky ha scritto:
Based on a few requests, I've created a blog for this. Hope
I also tried the following to connect the activate signal to sample_func:
test.activate.connect (sample_func);
And the old syntax:
test.activate += sample_func;
But nothing happens in both when I click testitem in the menubar.
Is it possible that activate signal couldn't be emitted on
var actiongroup = new Gtk.ActionGroup(MainActions);
Gtk.MenuItem menuitem = new Gtk.MenuItem.with_mnemonic(_Actions);
Gtk.Menu actionmenu = new Gtk.Menu();
Gtk.Action test = new Gtk.Action (Test, Test, null, null);
actiongroup.add_action (test);
test.activate.connect ((source)
-- Forwarded message --
From: Hadi Aminzadeh had...@gmail.com
Date: Thu, Feb 4, 2010 at 11:01 AM
Subject: Re: [Vala] Can not connect Gtk.Action to a function
To: Nor Jaidi Tuah norjaidi.t...@ubd.edu.bn
Sorry, It was a typo in pasting the code in my email.
But the problem still
15 matches
Mail list logo