Re: libglade and signals

From: Date: Thu, 29 Mar 2001 17:10:00 +0000
Subject: Re: libglade and signals
References: 1 2  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1194@lists.php.net to get a copy of this message
Em Qui 29 Mar 2001 11:58, Andrei Zmievski escreveu: > On Thu, 29 Mar 2001, Bernd Roemer wrote: > > hi... > > > > I'm new here... and newbie in "gtk", but i have already done some tests. > > Ok... my problem: > > php-gtk (with libglade) ignores my glade-signals.. > > > > samplecode: > > <?php > > dl('php_gtk.so'); > > > > function test() { > > echo "TEST\n"; > > flush(); > > } > > > > $foo = &new GladeXML('glade.xml'); > > $mainWindow = $foo->get_widget('main_window'); > > Gtk::main(); > > ?> > > > > clicking the button should call "test", shouldnt it?? > > if I add these two lines: > > $button=$foo->get_widget('button1'); > > $button->connect("clicked","test"); > > ...the buttons event is active. > > isnt there another way to "connect" events?? > > $foo->signal_autoconnect(); > I have one doubt about this, how can I pass args on glade? I have a function that can receive 1, 2, 3, 4 dependingo on what object called the function. But seems like I can't send a argument by using glade. -- Iuri Fiedoruk Santa Maria, RS, Brazil

« previous php.gtk (#1194) next »