/* * call-seq: * timeout=(milliseconds) * * Sets the timeout in milliseconds. */ static VALUE _wrap_notification_set_timeout(VALUE self, VALUE ml) { NotifyNotification *n = NOTIFY_NOTIFICATION(RVAL2GOBJ(self)); #ifdef DEBUG if(NOTIFY_IS_NOTIFICATION(n)) rb_warn("timeout, ok"); else rb_warn("timeout, no ok"); #endif notify_notification_set_timeout(n, FIX2INT(ml)); return Qnil; }