Re: add_events
| From: | epplestun | Date: | Mon, 19 May 2003 08:26:19 +0000 |
| Subject: | Re: add_events | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3459@lists.php.net to get a copy of this message | ||
add_events() can only be used after a widget has had realize() called on it.
Note that realization is a part of the show() routine as well as being a
method/signal pair in its own right.
Do you realize() your widget?¿? try to realize and then add de event.
----- Original Message -----
From: "Christian Weiske" <cweiske@cweiske.de>
To: <php-gtk-general@lists.php.net>
Sent: Monday, May 19, 2003 10:06 AM
Subject: [PHP-GTK] add_events
> 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
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>