connect_object & GtkEventBox

From: Date: Sun, 03 Oct 2004 14:15:40 +0000
Subject: connect_object & GtkEventBox
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5125@lists.php.net to get a copy of this message
Hi, I am having issues with connect_object() on widgets wrapped in event boxes , basically when there is an event box involved there seems to be an extra argument passed to any callbacks attatched to eventbox related signals. function do_stuff( $only_argument ){ alert($only_argument); } /*this works fine*/ $regular_widget->connect_object('clicked' , array(&$this,'do_stuff') 'only_argument' ) ; /*but*/ $widget_wrapped_in_GtkEventBox->connect_object('button-press-event' , array(&$this,'do_stuff') 'only_argument' ) ; passes 2 arguments to do_stuff , the first being the GtkEventBox event data (as an object) the second is the expected argument Is this a bug , expected behaviour or something I am doing wrong ? , I can easily bypass the issue by adding a dummy argument to the function & checking for type (&/or altering normal callbacks ) but its messy. On a side note I can't seem to associate a 'clicked' event via a GtkEventBox , I can do 'button-press-event' via GDK_BUTON_PRESS_MASK but not 'clicked' , is this possible ? if not no worry but its bugging me to know. Regards, Simon.

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