Re: [Vala] Signals not being called back

2014-09-04 Thread Michael Starkweather
I noticed after your response (thank you for that when I canceled the Timeout by returning false from the callback that the libbamf signal callbacks also stopped, which I found curious, because if it was a setup thing and if the Timeout was doing some sort of setup, then surely after the Timeout

[Vala] Signals not being called back

2014-09-03 Thread Michael Starkweather
Hello! I'm having issues getting signals to callback in my Vala application and I'm kind of at a loss. I'm fairly confident that this is a setup issue relating to Gtk.Appplication.run() and Gtk.main() but I cannot be sure. Here's my basic setup: main () creates and runs a Gtk.Application which

Re: [Vala] Signals not being called back

2014-09-03 Thread Nor Jaidi Tuah
I suspect your connect was done before a main loop was created and libbamf doesn't automatically create one. Timeout, on the other hand, will cause a default main loop to be created. Nice day Nor Jaidi Tuah PRIVILEGED/CONFIDENTIAL information may be contained in this message. If you are

[Vala] signals

2012-09-07 Thread D.H. Bahr
Hello there! I've being experiencing a bug for a while now and I have no clue how to solve it. The situation is as follows: I have a set of classes (most of which handle some GtkWidget build from a Glade XML using a GtkBuilder instance). One of those classes has a GtkGrid and another has a

Re: [Vala] signals

2012-09-07 Thread D.H. Bahr
Victor, truth is I don't have the code on me right now and I won't have access to my email during the weekend 'cause I can only use the connexion at work. The code (at least the relevant part) looks kinda this (I promise I'll send the actual one on monday): class UIBuilder : Object { private

Re: [Vala] Signals with the same name as a signal in a base type are not supported

2010-04-10 Thread Adi Roiban
On Thu, 2010-04-08 at 07:38 -0500, Sandino Flores Moreno wrote: I think the real question is: Does GObject allow same signal redefinition? Personally, I don't think it's supported, but I don't really know. Since signals are always something abstract and they don't require any implementation,

[Vala] Signals with the same name as a signal in a base type are not supported

2010-04-01 Thread Adi Roiban
Hi, I have upgraded from vala 0.7.6 to 0.7.9 and now when I compile the same code, i get this error: Signals with the same name as a signal in a base type are not supported The error is in GenericItem. Here is an excerpt from the code. public interface IItem : GLib.Object { public abstract

[Vala] Gtk keybindings cannot be bound to Vala signals: G_SIGNAL_ACTION-flag missing

2010-02-26 Thread Julius Pfrommer
with keybindings that don't necessarily connect to a (clicked-, ..) signal of existing widgets. Is there some way around this problem until the patches land? Have I missed some GLib functionality that can be applied to the Vala signals? Best regards, Julius

[Vala] Signals of widgets created with Glade.XML

2010-02-08 Thread goli
I have a glade file which places a treeview item inside a window. I want to create a treeview object using Glade.XML: public class Simple : GLib.Object { private Gtk.TreeView treeview; public Simple () { Glade.XML xml = new Glade.XML (...); Gtk.Window window =

[Vala] Signals for GType fundanmental classes.

2008-11-23 Thread Yu Feng
http://bugzilla.gnome.org/show_bug.cgi?id=561989 test case: class AAA { public AAA() { } public signal void changed(); public void change() { changed(); } public static int main(string[] args) { AAA aaa = new AAA(); aaa.changed+= (o) = {