add_events
| From: | Christian Weiske | Date: | Mon, 19 May 2003 08:06:57 +0000 |
| Subject: | add_events | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3458@lists.php.net to get a copy of this message | ||
Hi
I'm trying to add the button_press event to a GtkPixmap, but it doesn't
want to work...
$this->arWidgets["pxmBernd"] ->add_events( GDK_BUTTON_PRESS_MASK);
$this->arWidgets["pxmBernd"] ->connect_object( 'clicked', array(
&$this, "OnButtonBernd"));
> (appwizard.php-gtk:3156): Gtk-CRITICAL **: file gtkwidget.c: line 3871
> (gtk_widget_add_events): assertion `!GTK_WIDGET_NO_WINDOW (widget)'
failed
This is when I try to use add_events(..)
> (appwizard.php-gtk:3156): Gtk-WARNING **: gtk_signal_connect_full():
> could not find signal "clicked" in the `GtkPixmap' class ancestry
And this is just the connetion
Does anybody has experience with that?
Regards/MfG,
Christian Weiske
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
Christian Weiske
cweiske@cweiske.de
www.cweiske.de
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
Always forgetting birthdays? Try birthday reminder!
http://www.cweiske.de/birthday.htm
Free & fast ecards: http://ecards.cweiske.de