Re: Signal handler methods
| From: | Scott Mattocks | Date: | Mon, 11 Jul 2005 20:23:01 +0000 |
| Subject: | Re: Signal handler methods | ||
| References: | 1 2 3 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1436@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
We're not going to wrap gtk_signal_* funcs automatically. Besides, they are deprecated. But I've been adding relevant methods to GObject actually.I found this in the phpg_gobject.c file. Is this one of the relevant methods? If so, can I just call it with $widget->block($signalHandlerId)? static PHP_METHOD(GObject, block) {
guint handler_id;
NOT_STATIC_METHOD();
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "i", &handler_id)) {
return;
}
g_signal_handler_block(PHPG_GOBJECT(this_ptr), handler_id);} Thanks, Scott