Button How to intercept signal from a istance of class into another class

From: Date: Wed, 29 Oct 2008 09:31:19 +0000
Subject: Button How to intercept signal from a istance of class into another class
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-8317@lists.php.net to get a copy of this message
Problem: I have a main window class class mywin extends GtkWindow { ...constructor... ... // Button section $three_buttons = new mybuttons() $vbox -> pack_start($three_buttons,0); ...... ..etc... end constructor function OneFunction() { make something } } class mybuttons extends GtkHbox { .... constructor $button_a=new GtkButton("Open"); $this -> pack_start($button_a,0); $button_b=new GtkButton("Run"); $this -> pack_start($button_b,0); $button_c=new GtkButton("Close"); $this -> pack_start($button_c,0); $close_c->connect("clicked", array($this,"OnClose")); // note 6 ...... end cosntructor function OnClose ($widget ) { Here I would call the function OneFunction() in the parent class How can I make it ??? } } Thanks -- View this message in context: http://www.nabble.com/Button-How-to-intercept-signal-from-a-istance-of-class-into-another-class-tp20223469p20223469.html Sent from the Php - GTK - General mailing list archive at Nabble.com.

« previous php.gtk.general (#8317) next »